简体   繁体   English

调用wampp中未定义的函数curl_init()

[英]Call to undefined function curl_init() in wampp

I am getting an error. 我收到一个错误。 I have done the following: 我已经完成以下工作:

  1. Find file php.ini and uncomment in wamp apache folder 在wamp apache文件夹中查找文件php.ini并取消注释
  2. Find file php.ini and uncomment in wamp php folder 在wamp php文件夹中查找文件php.ini并取消注释
  3. checked in wamp extensions 签入沼泽扩展
  4. download file and replace php_curl-5.3.13-nts-VC9-x64.zip 下载文件并替换php_curl-5.3.13-nts-VC9-x64.zip
  5. restart wamp. 重新启动沼泽。

But I still get error 但是我仍然会出错

Fatal error: Call to undefined function curl_init() in C:\wamp\www\wordpress\wp-content\plugins\test\curl_http_client.php on line 66

Call to undefined function curl_init 调用未定义的函数curl_init

You either edit wrong php.ini file or something is missing on your system, preventing curl extension from loading. 您或者编辑了错误的php.ini文件,或者系统上缺少某些内容,从而阻止了curl扩展加载。 You shall check with phpinfo() where is proper php.ini , then check if you got extension entry for cURL really enabled. 您应使用phpinfo()检查php.ini是否正确,然后检查是否确实启用了cURL的extension If so and it is still not working then next step should be checking Apache's error.log looking for detailed error messages from PHP. 如果是这样并且仍然无法正常工作,那么下一步应该是检查Apache的error.log查找来自PHP的详细错误消息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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