PHP cURL 不起作用 - Windows 7 64 位上的 WAMP [英] PHP cURL not working - WAMP on Windows 7 64 bit
问题描述
我在 Windows 7 64 位系统上安装了 WAMP.cURL 不起作用,但我仍然从 WAMP 托盘启用了它.
I got my WAMP installed on my windows 7 64bit. cURL is not working, but still I got it enabled from the WAMP tray.
我还为 PHP 和 Apache 文件夹取消了 php.ini
中的 extension=php_curl.dll
注释.
I have also uncommented extension=php_curl.dll
in php.ini
for both the PHP and Apache folder.
Windows 给我一条错误消息,
Windows give me an error message,
PHP 启动:无法加载动态库 'c:/wamp/bin/php/php5.4.3/ext/php_curl.dll' - 应用程序无法启动,因为其并行配置不正确.请查看应用程序事件日志或使用命令行 sxstrace.exe 工具获取更多详细信息."
PHP Startup: unable to load dynamic library 'c:/wamp/bin/php/php5.4.3/ext/php_curl.dll' - the application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-lin sxstrace.exe tool for more detail."
我该如何解决这个问题?
How can I fix this problem?
推荐答案
转到 http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/ 并下载与您的 PHP 版本在Fixed curl extensions:.
Go to http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/ and download the cURL version that corresponds to your PHP version under "Fixed curl extensions:".
因此,如果您有 PHP 5.3.13,请下载php_curl-5.3.13-VC9-x64.zip".首先尝试VC"版本.然后替换ext文件夹中的php_curl.dll.这对我有用.
So if you have PHP 5.3.13, download "php_curl-5.3.13-VC9-x64.zip". Try the "VC" version first. Then replace the php_curl.dll in ext folder. This worked for me.
这篇关于PHP cURL 不起作用 - Windows 7 64 位上的 WAMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!