Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phpinfo() not showing curl

Tags:

php

curl

I have php_curl.dll in xampp/php/ext/ folder and in php.ini file I set extension=php_curl.dll (removed ';'). I also set extension_dir = "C:\xampp\php\extensions\" in php.ini file. Then I restarted the Apache, even I restarted the system 2 times. But till in Phpinfo() I cant see curl. and I am getting error like"Call to undefined function curl_init()"`

I have PHP version 5.2.4.

like image 912
user1808669 Avatar asked Nov 03 '22 11:11

user1808669


2 Answers

Check your Apache's error_log file. Even if php_curl.dll is activated in your php.ini, a startup problem might disable your php_curl.dll, so it doesn't show up in phpinfo(). Search for any line like this:

PHP Warning: PHP Startup: Unable to load dynamic library

Also check that the correct php.ini is loaded (is shown at the beginning of phpinfo()) and that your extension_dir is correctly configured.

like image 98
Marcelo Pascual Avatar answered Nov 12 '22 18:11

Marcelo Pascual


"At http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/ . Download the file that you need from the fixed curl extensions list at the bottom of the page, for example Windows 7 64 bit Machines will work correctly with the non nts file."

Source: http://www.developingtheweb.co.uk/php-5-4-3-and-5-3-13-curl-extension-fix/

like image 28
Kim Skovhus Andersen Avatar answered Nov 12 '22 16:11

Kim Skovhus Andersen