如何在xampp中启用curl?
我的PHP twitter应用程序需要curl功能.但是在XAMPP中没有启用它.如何启用它.我找不到这样做的选择.
我已按照这里的所有说明操作: 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)