相关疑难解决方法(0)

PHP cURL无效 - Windows 7 64位上的WAMP

我在Windows 7 64bit上安装了WAMP.cURL不起作用,但我仍然从WAMP托盘启用它.

我也注释掉extension=php_curl.dllphp.ini为PHP和Apache文件夹两者.

Windows给我一个错误信息,

PHP启动:无法加载动态库'c:/wamp/bin/php/php5.4.3/ext/php_curl.dll' - 应用程序无法启动,因为它的并排配置不正确.请参阅应用程序事件日志或使用命令-lin sxstrace.exe工具获取更多详细信息."

我该如何解决这个问题?

php curl wamp

169
推荐指数
4
解决办法
13万
查看次数

如何在Windows上安装cURL?

我已按照这里的所有说明操作: http //www.tonyspencer.com/2003/10/22/curl-with-php-and-apache-on-windows/

安装和配置apache获取PHP5包并获取CURL包.

我运行apache并运行PHP脚本.没问题.但是当我用curl运行php脚本时,它失败了.

它返回: **Call to undefined function curl_version() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\testing.php on line 5**

在哪一行5被呼叫 curl_init()

我输出php -i以查看是否调用了正确的扩展路径.它设置正确:

extension_dir => C:\PHP\ext => C:\PHP\ext
cURL support => enabled
cURL Information => libcurl/7.16.0 OpenSSL/0.9.8g zlib/1.2.3
Run Code Online (Sandbox Code Playgroud)

我甚至试图跑,curl_version() 但仍然出现同样的错误.
看起来PHP无法找到CURL扩展名,但是php.ini(以及php -i)显示它已设置.

任何的想法?:)

P.S>  System I m running on:
Windows XP
Apache 2.2
PHP 5.2.6
CURL Win32 Generic Binaries: Win32 2000/XP  metalink    7.19.0  binary  SSL enabled     Daniel Stenberg     249 KB
Run Code Online (Sandbox Code Playgroud)

我没有得到这个:

Win32 2000/XP   7.19.0  libcurl     SSL enabled …
Run Code Online (Sandbox Code Playgroud)

php windows installation curl windows-xp

54
推荐指数
5
解决办法
21万
查看次数

在64位Windows上运行cURL

我是cURL的新手,刚刚安装了它,但它似乎只是做了它的感觉.我正在使用我从这里获得的64位版本:http://curl.haxx.se/latest.cgi?curl = win64-ss-spi,其中包含我在此处找到的安装说明:http://guides.instructure.com/m/4214/l/83393-how-do-i-install-and-use-curl-on-a-windows-machine.打开一个新的Powershell窗口我可以使用这样的简单GET请求:

curl http://localhost:3000
Run Code Online (Sandbox Code Playgroud)

但如果我运行POST

curl -d "hello world" http://localhost:3000
Run Code Online (Sandbox Code Playgroud)

它告诉我"Invoke-WebRequest:参数无法处理,因为参数名称'd'不明确.可能的匹配包括:-DisableKeepAlive -Debug."

我试图获得帮助

curl -h or curl --help
Run Code Online (Sandbox Code Playgroud)

给我"Invoke-WebRequest:缺少参数'Headers'的参数.指定'System.Collections.IDictionary'类型的参数,然后再试一次."

正如我所提到的,我是一个cURL新手,但它似乎很奇怪,它可以得到请求,但没有别的.我有什么想法我做错了吗?

Windows 7 64位Powershell版本4

windows powershell curl

39
推荐指数
2
解决办法
3万
查看次数

标签 统计

curl ×3

php ×2

windows ×2

installation ×1

powershell ×1

wamp ×1

windows-xp ×1