php 如何在 Wamp 服务器中启用 curl
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13021536/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to enable curl in Wamp server
提问by user1766361
I try 30 combination of answer and forum topic but did not find the right answer.
我尝试了 30 个答案和论坛主题的组合,但没有找到正确的答案。
I do all but how I can enable the curl int wamp server becouse I need that?
除了我需要如何启用 curl int wamp 服务器之外,我什么都做了?
is there any solution? I try to uncomment - dont work? I try to chech into wamp task bar icons - php extension - php_curl I try to copy php_curl.dll into win sistem
有什么解决办法吗?我尝试取消注释 - 不工作?我尝试查看 wamp 任务栏图标 - php 扩展名 - php_curl 我尝试将 php_curl.dll 复制到 win 系统
NOT WORK
不行
What I need to do?
我需要做什么?
回答by Bibaswann Bandyopadhyay
The steps are as follows :
步骤如下:
- Close WAMP (if running)
- Navigate to
WAMP\bin\php\(your version of php)\ - Edit
php.ini - Search for curl, uncomment
extension=php_curl.dll - Navigate to
WAMP\bin\Apache\(your version of apache)\bin\ - Edit
php.ini - Search for curl, uncomment
extension=php_curl.dll - Save both
- Restart WAMP
- 关闭 WAMP(如果正在运行)
- 导航
WAMP\bin\php\(your version of php)\ - 编辑
php.ini - 搜索 curl,取消注释
extension=php_curl.dll - 导航
WAMP\bin\Apache\(your version of apache)\bin\ - 编辑
php.ini - 搜索 curl,取消注释
extension=php_curl.dll - 两个都保存
- 重启 WAMP
回答by nterms
I got the same issue and this solved it for me. Perhaps this might be a fix for your problem too.
我遇到了同样的问题,这为我解决了。也许这也可以解决您的问题。
Here is the fix. Follow this link http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/
这是修复。按照此链接 http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/
Go to "Fixed curl extensions" and download the extension that matches your PHP version.
转到“Fixed curl extensions”并下载与您的 PHP 版本匹配的扩展程序。
Extract and copy "php_curl.dll" to the extension directory of your wamp installation. (i.e. C:\wamp\bin\php\php5.3.13\ext)
将“php_curl.dll”解压并复制到 wamp 安装的扩展目录。(即 C:\wamp\bin\php\php5.3.13\ext)
Restart Apache
重启阿帕奇
Done!
完毕!
Refer to: http://blog.nterms.com/2012/07/php-curl-issues-with-wamp-server-on.html
参考:http: //blog.nterms.com/2012/07/php-curl-issues-with-wamp-server-on.html
Cheers!
干杯!
回答by George
Left Click on the WAMP icon the system try -> PHP -> PHP Extensions -> Enable php_curl
左键单击系统尝试的 WAMP 图标 -> PHP -> PHP 扩展 -> 启用 php_curl

