简体   繁体   English

致命错误:使用php5在我的apache2服务器中调用未定义的函数curl_init()

[英]Fatal error: Call to undefined function curl_init() in my apache2 server with php5

I got this error when I run my project in which I use curl in windows7 environment. 运行在Windows7环境中使用curl的项目时出现此错误。

  Fatal error: Call to undefined function curl_init()

I am use Apache2.2 and latest version of PHP and the directory is C:/Apache2; 我使用的是Apache2.2和最新版本的PHP,目录为C:/ Apache2; C:/PHP. C:/ PHP。 I set(remove ;) extension for curl in php.ini also check php_curl.dll , ssleay32.dll and libeay32.dll file are present in C:/PHP directory as well as C:/windows/system32 . 我在php.ini中设置了(remove;)扩展名curl,还检查了php_curl.dllssleay32.dlllibeay32.dll文件是否存在于C:/ PHP目录以及C:/ windows / system32中

Is there any configuration related problem or other problem?? 是否有任何与配置有关的问题或其他问题?

Advanced thanks for any kinds of solution... 非常感谢您提出的各种解决方案...

** My server is not wamp/xamp **我的服务器不是wamp / xamp

If you did enable the curl extension in php.ini (the correct one). 如果确实在php.ini启用了curl扩展(正确的扩展名)。 You should reboot your webserver. 您应该重新启动Web服务器。 And check the output of phpinfo(); 并检查phpinfo();的输出phpinfo();

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

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