如何在 xampp 中启用 curl [英] how to enable curl in xampp

查看:45
本文介绍了如何在 xampp 中启用 curl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正面临下面给出的这个错误

I am facing this error given below

致命错误:在第 11 行调用 E:\xampp\htdocs\new\functions.php 中未定义的函数 curl_init()

Fatal error: Call to undefined function curl_init() in E:\xampp\htdocs\new\functions.php on line 11

我已经在 php.ini 中进行了更改.我把

I have already made change in php.ini. I have removed the semicolon in front of

;extension=php_crack.dll
extension=php_curl.dll
;extension=php_cvsclient.dll

然后重新启动 xampp 但仍然面临同样的问题.是否有任何其他更改需要.请让我知道如果有我将非常感谢你们

and after that restart the xampp but still facing same problem.Is there any other change need.Please let me know if any I shall be very thankful to you all

推荐答案

如果您使用的是 XAMPP,请检查以下两个位置:

If you are using XAMPP, check these two locations:

  • C:\xampp\xampplite\apache\bin\php.ini
  • C:\xampp\xampplite\php\php.ini

对于行 ;extension=php_curl.dll.

删除分号,保存两个文件,重新启动 Apache,然后再次运行它.我希望它会奏效.

Remove the semicolon, save both files, restart your Apache and then run it again. I hope it will work.

这篇关于如何在 xampp 中启用 curl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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