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.
Thankfully, XAMPP installs the cURL library during its installation but it is not enabled by default, you have to manually enable it.
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:
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   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   Restart your Apache server.
Check your phpinfo() to see whether curl has properly enabled or not.
Enjoy using curl() library.
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 
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With