使用WAMP调用未定义函数curl_init()错误 [英] Call to undefined function curl_init() error with WAMP
本文介绍了使用WAMP调用未定义函数curl_init()错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道这是一个常见的问题,但我已经尝试了所有我发现,它仍然不工作。
I know that it's a very often asked problem, but I've tried all that I found and it still doesn't work.
我使用WAMP 2.2 Windows 7(64位)和PHP 5.4.3。当我在localhost中调用curl_init()时,出现这个错误信息:
I use WAMP 2.2 on Windows 7 (64 bits), and PHP 5.4.3. When I call curl_init() in localhost, I've this error message :
Call to undefined function curl_init()
我做了什么:
- 在WAMP的PHP扩展中检查php_curl
- 多次重新启动WAMP
- before extension = php_curl.dll in my two php.ini files
- 在我的两个php.ini中检查extension_dir =c:/wamp/bin/php/php5.4.3/ext/
- 重新启动WAMP多次
- 更改此应该修正的DLL的DLL http://www.anindya.com/php-5-4 -3-and-php-5-3-13-x64-64-bit-for-windows /
- 重新启动WAMP多次
- Check php_curl in PHP extensions of WAMP
- Restart WAMP many times
- Remove ; before extension=php_curl.dll in my two php.ini files
- Check extension_dir = "c:/wamp/bin/php/php5.4.3/ext/" in my two php.ini files
- Restart WAMP many times
- Change the DLL for this supposedly corrected DLL http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/
- Restart WAMP many times
当我调用php_info()时,我找不到curl ...
And when I call php_info(), I cannot find curl...
推荐答案
前往这个连结下载* php_curl-5.4.3-VC9-x64.zip *修复curl扩展名:,并替换extp文件夹中的php_curl.dll。这对我有用。
Go to this link download *php_curl-5.4.3-VC9-x64.zip* under "Fixed curl extensions:" and replace the php_curl.dll in ext folder. This worked for me.
这篇关于使用WAMP调用未定义函数curl_init()错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文