取消注释php.ini后,XAMPP和cURL不起作用 [英] XAMPP and cURL not working, after uncommenting php.ini
问题描述
其他有相同问题的人仍然没有得到应有的体面回答/解决我的问题:
Someone else with the same problem still didn't get a decent answer/fix for my problem:
在发表评论或批评之前,请确保您阅读以下内容,以免重复我在Google和Stack Overflow中看到的100倍的情况...
- XAMPP(Lite)安装在Windows 7上的
C:\ xampplite
(最新版本,在C:\ xampplite \ php中只有一个
)php.ini
文件 - XAMPP和PHP脚本在
http://localhost/
中正确运行在 - libcurl(默认为XAMPP)在第
extension = php_curl.dll
行的开头,编辑并保存了 -
php.ini
以删除;
-
php.ini
的默认值为extension_dir ="C:\ xampplite \ php \ ext"
正确并保留 - Apache服务在Windows Services中重新启动
- 计算机重新启动
- Apache服务(手动)再次重新启动
-
phpinfo();
仍不显示任何带有"curl"字样的内容 - 仍然没有成功
C:\ xampplite \ php \ ext \ php_curl.dll
中安装了- XAMPP (Lite) installed on Windows 7 in
C:\xampplite
(newest version, only onephp.ini
file inC:\xampplite\php
) - XAMPP and PHP scripts run correctly in
http://localhost/
- libcurl installed (by XAMPP default) in
C:\xampplite\php\ext\php_curl.dll
php.ini
edited and saved for removal of;
at beginning of lineextension=php_curl.dll
php.ini
default forextension_dir = "C:\xampplite\php\ext"
correct and left alone- Apache service restarted in Windows Services
- Computer restarted
- Apache service (manually) restarted again
phpinfo();
still does not display anything with the word "curl" in it- Still no success
谢谢.
推荐答案
查看以下内容:http://www.kanersan.com/blog.php?blogId=45 除了错误报告外,我遇到了类似的问题.在整个互联网上搜索后,我发现的只是修改php.ini文件".我修改了所有的php.ini文件,但仍然遇到相同的错误.事实证明,WAMP具有视觉设置,我相信这些设置会覆盖php.ini.因此,要打开curl,请在开始开始菜单中单击XAMPP图标-> PHP-> PHP设置-> php_curl(确保已选中).
Check this out: http://www.kanersan.com/blog.php?blogId=45 I had a similar problem except for error reporting. Searched all over the internet and all I found was "modify the php.ini file". I modified all the php.ini files but I was still getting the same error. Turns out WAMP has visual settings which I believe overwrite the php.ini. So to turn on curl, you'd left click on XAMPP icon in your start start menu -> PHP -> PHP Settings -> php_curl (make sure it is checked).
也许这是您的问题.
希望有帮助.
-c0d3
这篇关于取消注释php.ini后,XAMPP和cURL不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!