调用未定义的函数 curl_init() 错误 [英] Call to undefined function curl_init() error
问题描述
我使用的是 Win 64 位操作系统,php 5.6.8,使用 Eclipse PDT 开发 PHP.
I am on a Win 64 bit OS, php 5.6.8 using Eclipse PDT to develop PHP.
我遇到了这个 Call to undefined function curl_init() 错误.
I have come across this Call to undefined function curl_init() error.
我删除了php.ini 中extension=php_curl.dll
之前的;
.重新启动Apache 服务器,但仍然遇到相同的错误.
I removed the ;
preceeding extension=php_curl.dll
in php.ini .Restarted the Apache server but still getting the same error.
任何提示我哪里出错了?
Any hint where I am going wrong?
推荐答案
我遇到了同样的问题,几个小时后,我在这里找到了一条消息:
I had the same issue and after hours, I found a message here :
http://php.net/manual/curl.installation.php
上面写着:在 Windows 7 x64 cURL 上升级到 php 5.6.9 不再被识别.服务器启动包上没有错误,只是不可用并且没有在 phpinfo.php
中显示.<代码>deplister.exe 没问题我修复了从 php 文件夹(在我的情况下为 D:\xampp\php)libeay32.dll
、libssh2.dll
、ssleay32.dll
到 c:\xampp\apache\bin
(或您的 apache\bin
路径),重新启动 Apache 并正常工作,Apache 的库已过时."
which says, "Upgrading to php 5.6.9 on Windows 7 x64 cURL no longer is recognized. No errors on server start package just not available and didn't show in phpinfo.php
. deplister.exe
was ok
I fixed coping the following list files from php folder (in my case D:\xampp\php) libeay32.dll
, libssh2.dll
, ssleay32.dll
to c:\xampp\apache\bin
(or your apache\bin
path), restart Apache and works fine, Apache's libraries were outdated."
它对我有用.
不容易找到吧?:-)
这篇关于调用未定义的函数 curl_init() 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!