Enabling curl with XAMPP on Windows XP , Vista

To enable curl library with XAMPP we need to modify the php.ini files in our xampp folder.

1) Locate the following files in XAMPP folder Installation:

 

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

2) Uncomment the following line on your php.ini file by removing the semicolon.

;extension=php_curl.dll
extension=php_curl.dll

3) Restart your apache server.

4) Check your phpinfo output if curl was properly enabled.

or Use if(function_exist("curl_init"))