在wamp 2.2中调用未定义的函数curl_init()错误 [英] Call to undefined function curl_init() error in wamp 2.2

查看:168
本文介绍了在wamp 2.2中调用未定义的函数curl_init()错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用wamp伺服器在Windows 7中执行google和Facebook验证时,我遇到以下错误。


致命错误:调用
中的未定义函数curl_init()E:\wamp\www\mysite\protected\extensions\eauth\EAuthServiceBase.php
on line 273


我正在使用,




  • wampserver 2.2

  • php version 5.3.13



我已启用php_curl模组。

 ; extension = php_bz2.dll 
扩展名= php_curl.dll
; extension = php_dba.dll

xampp,但不是在窗口中的wamp。我做了我能找到的一切。我已经尝试替换php_curl.dll也根据对此线程的评论,
下载并替换相关文件后重新启动服务器。
在浏览器中导航到localhost并确保在加载扩展下显示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:\wamp\www\mysite\protected\extensions\eauth\EAuthServiceBase.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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆