Home  >  Article  >  Backend Development  >  curl不能加载,怎么弄呢?

curl不能加载,怎么弄呢?

WBOY
WBOYOriginal
2016-06-23 14:19:401009browse

Curl PHP 扩展

win7 64位  
Wampserver2.4-x64.exe
apache2.4.2+php5.4.3+mysql5.5.24
curl不能加载报错
 Fatal error: Call to undefined function curl_init() in F:\1wwwroot\phpwind_v9.0_utf8\upload\cs.php on line 35

配置
extension_dir = "d:/wamp/bin/php/php5.4.3/ext/"
extension=php_curl.dll
这两个,
php 的 ext 文件夹已经加入环境变量了
php报错语句
$ch = curl_init();

curl不能加载报错
 Fatal error: Call to undefined function curl_init() in F:\1wwwroot\phpwind_v9.0_utf8\upload\cs.php on line 35

还需要什么东西吗? 需要什么配置吗?

回复讨论(解决方案)

检查 libeay32.dll,ssleay32.dll 是否存在

检查 libeay32.dll,ssleay32.dll 是否存在

在 这个目录中 D:\wamp\bin\php\php5.4.3  有这2个文件,后来我复制到 system32中去了2个,没有注册组件
php_curl  633 KB (648,704 字节)

php_curl.dll是64位上??的??vc?行?和你本?安?的是否一致呢?
同?是一?dll文件,他?有很多不同的版本,版本不同就?法工作.如果有?件的?你可以自己??一?dll,否?建?你搜索一下????? "win7 64位 vc? php_curl.dll 下?"

php_curl.dll是64位上??的??vc?行?和你本?安?的是否一致呢?
同?是一?dll文件,他?有很多不同的版本,版本不同就?法工作.如果有?件的?你可以自己??一?dll,否?建?你搜索一下????? "win7 64位 vc? php_curl.dll 下?"

我下载的是 wampserver  环境安装的

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn