且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在xampp中启用curl?

更新时间:2023-02-24 13:55:10

您必须修改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中启用curl library with XAMPP:

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

浏览并开启以下3个档案

Browse and open the following 3 files

C:\Program Files\xampp\apache\bin\php.ini
C:\Program Files\xampp\php\php.ini
C:\Program Files\xampp\php\php4\php.ini



步骤2:

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

Step 2:

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

;extension=php_curl.dll

以下 -

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()库。