在 wamp 2.2 中调用未定义的函数 curl_init() 错误 [英] Call to undefined function curl_init() error in wamp 2.2
问题描述
当我尝试在 Windows 7 中使用 wamp 服务器实现 google 和 facebook 身份验证时遇到以下错误.
<块引用>致命错误:调用未定义的函数 curl_init() inE:wampwwwmysiteprotectedextensionsauthEAuthServiceBase.php在线 273
我正在使用,
- wampserver 2.2
- php 版本 5.3.13
我也启用了 php_curl 模块.我检查了 php.ini 进行了确认,如下所示取消了注释.
;extension=php_bz2.dll扩展名=php_curl.dll;扩展= php_dba.dll
该代码在 ubuntu 中与 xampp 一起工作,但在 windows 中的 wamp 中无效.我已经做了我能找到的一切.我也尝试根据该线程的评论替换 php_curl.dll,下载并替换相关文件后,重新启动服务器.在浏览器中导航到 localhost 并确保在 Loaded Extensions 下显示 curl 扩展:
I am having below error when I try to implement google and facebook authentication in windows 7 using wamp server.
Fatal error: Call to undefined function curl_init() in E:wampwwwmysiteprotectedextensionseauthEAuthServiceBase.php on line 273
I am using,
- wampserver 2.2
- php version 5.3.13
I have enabled php_curl module as well. I checked in php.ini for confirm and it is uncommented as below.
;extension=php_bz2.dll
extension=php_curl.dll
;extension=php_dba.dll
The code has worked in ubuntu with xampp, but not in wamp in windows. I have done everything I can find. I have tried replacing the php_curl.dll also according to the comment on this thread, Call to undefined function curl_init() - with WAMP
My phpinfo() looks like below.
I have installed wamp in the partition E:, but the "Configuration File (php.ini) Path" seems different, it is C:Windows.
Please help me to fix the issue.
Visit this and have a file under Fixed curl extensions: http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/ after download and replace related file then restart server. In browser navigate to localhost and make sure there is curl extensions showing under Loaded Extensions :
这篇关于在 wamp 2.2 中调用未定义的函数 curl_init() 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!