取消注释php.ini后,XAMPP和cURL不起作用 [英] XAMPP and cURL not working, after uncommenting php.ini

查看:84
本文介绍了取消注释php.ini后,XAMPP和cURL不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

其他有相同问题的人仍然没有得到应有的体面回答/解决我的问题:

Someone else with the same problem still didn't get a decent answer/fix for my problem:

在发表评论或批评之前,请确保您阅读以下内容,以免重复我在Google和Stack Overflow中看到的100倍的情况...

  1. XAMPP(Lite)安装在Windows 7上的 C:\ xampplite (最新版本,在 C:\ xampplite \ php中只有一个 php.ini 文件)
  2. XAMPP和PHP脚本在 http://localhost/
  3. 中正确运行在 C:\ xampplite \ php \ ext \ php_curl.dll 中安装了
  4. libcurl(默认为XAMPP)在第 extension = php_curl.dll
  5. 行的开头,编辑并保存了
  6. php.ini 以删除;
  7. php.ini 的默认值为 extension_dir ="C:\ xampplite \ php \ ext" 正确并保留
  8. Apache服务在Windows Services中重新启动
  9. 计算机重新启动
  10. Apache服务(手动)再次重新启动
  11. phpinfo(); 仍不显示任何带有"curl"字样的内容
  12. 仍然没有成功
  1. XAMPP (Lite) installed on Windows 7 in C:\xampplite (newest version, only one php.ini file in C:\xampplite\php)
  2. XAMPP and PHP scripts run correctly in http://localhost/
  3. libcurl installed (by XAMPP default) in C:\xampplite\php\ext\php_curl.dll
  4. php.ini edited and saved for removal of ; at beginning of line extension=php_curl.dll
  5. php.ini default for extension_dir = "C:\xampplite\php\ext" correct and left alone
  6. Apache service restarted in Windows Services
  7. Computer restarted
  8. Apache service (manually) restarted again
  9. phpinfo(); still does not display anything with the word "curl" in it
  10. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆