xxxxxxxxxx
if (!extension_loaded('curl')) {
// "curl" module not yet loaded, load it
if (!dl('curl.so')) {
die('Failed to load the curl module.');
}
} else {
echo 'The curl module is already loaded.';
}
xxxxxxxxxx
// 1. check the php.ini, that not have set xdebug
// so for the values extension= and zend_extension=
// 2. check /etc/php5/apache2 and /etc/php5/cli/.
// You should not load in each php.ini in these directories the extension xdebug.
// so. Only one file, php.ini should load it.
// Note: Inside the path is the string /etc/php5. The 5 is the version of PHP.
// So if you use another version, you always get a different path, like php7.