[英]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(). 我一直收到错误Fatal error: Call to undefined function curl_init()
而cURL不会显示在phpinfo()中。
Important info: 重要信息:
extension=php_curl.dll
is not commented out in php.ini extension=php_curl.dll
在php.ini中未注释掉 PHP > PHP Extensions
php_curl is checked 在WAMP菜单中的PHP > PHP Extensions
下,检查php_curl 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. 我必须去这里: http ://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/并下载php_curl.dll与我的PHP版本相对应。
I found this here: https://stackoverflow.com/a/18576165/2525699 我在这里找到了这个: 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." “在http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/上 。从固定文件中下载所需的文件扩展名列表位于页面底部,例如Windows 7 64位计算机将与non nts文件一起正常工作。”
search your c:\\wamp\\ for php.ini; 在您的c:\\ wamp \\中搜索php.ini;
comment out extension=php_curl.dll in all of the files found. 在找到的所有文件中,注释掉extension = php_curl.dll。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.