简体   繁体   中英

cURL not showing up in phpinfo even though is is in php.ini

I keep getting the error Fatal error: Call to undefined function curl_init() and cURL does not show up in phpinfo().

Important info:

  • Windows 8 x64
  • I am running WAMP
  • extension=php_curl.dll is not commented out in php.ini
  • I am positive that I am checking the correct php.ini file
  • In the WAMP menu under PHP > PHP Extensions php_curl is checked
  • I have restarted all services in WAMP

I don't know what else to try. Any ideas?

Ok, it's working now. I had to go here: http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/ and download the php_curl.dll which corresponds with my version of PHP.

I found this here: https://stackoverflow.com/a/18576165/2525699

"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."

search your c:\\wamp\\ for php.ini;

comment out extension=php_curl.dll in all of the files found.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM