How to enable curl in xampp?

How to enable curl in xampp?

My twitter app for PHP requires a curl function. But it is not included in XAMPP. how to turn it on. I did not find any options for this.

+63
php curl xampp
Jun 11 '10 at 3:40
source share
7 answers

You must modify the php.ini files in your xampp folder. You need to change three files in three different places.

Follow these steps to enable curl library with XAMPP on Windows:

Step 1:

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 

Step 2:

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

 ;extension=php_curl.dll 

After that, he will look somehow below -

 extension=php_curl.dll 

Step 3:

Reboot the Apache server.

Step 4:

Check phpinfo() to make sure curl is enabled or not.

Enjoy using the curl () library.

+72
Mar 13 2018-12-12T00:
source share

It should be available in the php.ini file. You need to cancel the comment for the curl extension:

  ;extension=php_curl.dll ^----- remove semi-colon 
+49
Jun 11 '10 at 3:44
source share

In the XAMPP installation directory, open the %XAMPP_HOME%/php/php.ini . Uncomment the following line: extension=php_curl.dll

PS: If this does not work, check if the file %XAMPP_HOME%/php/ext/php_curl.dll .

+23
Jun 11 '10 at 5:28
source share

1) C: \ Program Files \ xampp \ php \ php.ini

2) Uncomment the next line in the php.ini file by deleting the semicolon.

; extension = php_curl.dll

3) Restart the Apache server.

+5
May 17 '12 at 20:22
source share

You can add any extension (on Wamp and Xampp servers) by deleting a half-hour (;)

+2
Jun 09 '12 at 18:25
source share

First, make sure you have libcurl (see: http://curl.haxx.se ). Then make sure your copy of PHP has been compiled with the flag --with-curl[=DIR] . For more information see:

If XAMPP comes pre-compiled with cURL, you just need to enable the extension in the php.ini file (usually by removing the semicolon at the beginning of the line that includes the extension).

+1
Jun 11 '10 at 4:05
source share

For XAMPP on MACOS or Linux, delete the semicolon in the php.ini file after extension = curl.so

0
Oct 02
source share



All Articles