Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable curl in xampp? [duplicate]

Tags:

php

curl

xampp

How to enable curl in 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.

like image 944
Aakash Chakravarthy Avatar asked Jun 11 '10 03:06

Aakash Chakravarthy


People also ask

Does xampp have curl?

Thankfully, XAMPP installs the cURL library during its installation but it is not enabled by default, you have to manually enable it.


2 Answers

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

Follow the following steps to enable curl library with XAMPP in 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 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 

Step 3:

Restart your Apache server.

Step 4:

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

Enjoy using curl() library.

like image 155
Anjuman Avatar answered Oct 12 '22 02:10

Anjuman


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

  ;extension=php_curl.dll   ^----- remove semi-colon 
like image 27
Sarfraz Avatar answered Oct 12 '22 03:10

Sarfraz