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

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

问题描述

如何在 xampp 中启用 curl ?

How to enable curl in xampp ?

我的 PHP 推特应用程序需要 curl 功能.但它在 XAMPP 中没有启用.如何启用它.我没有找到这样做的选项.

My PHP twitter application needs curl function. But it is not enabled in XAMPP. how to enable it. I found no options for doing that.

推荐答案

您必须修改 xampp 文件夹中的 php.ini 文件.三个不同地方的三个文件需要更改.

You have to modify the php.ini files in your xampp folder. Three files in three different places need to be changed.

按照以下步骤在 Windows 中使用 XAMPP 启用 curl 库:

Follow the following steps to enable curl library with XAMPP in Windows:

浏览并打开以下3个文件

Browse and open the following 3 files

C:Program Filesxamppapacheinphp.ini
C:Program Filesxamppphpphp.ini
C:Program Filesxamppphpphp4php.ini

第 2 步:

通过删除分号 (;) 来取消对 php.ini 文件中的以下行的注释.

Step 2:

Uncomment the following line in your php.ini file by removing the semicolon (;).

;extension=php_curl.dll

之后它会看起来像下面的东西-

After that it will look something like something below-

extension=php_curl.dll

第 3 步:

重启你的 Apache 服务器.

Step 3:

Restart your Apache server.

检查您的 phpinfo() 以查看 curl 是否已正确启用.

Check your phpinfo() to see whether curl has properly enabled or not.

享受使用 curl() 库.

Enjoy using curl() library.

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

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