AdBrite

Friday, September 10, 2010

How to enable cUrl in PHP

You have to do the below things to enable the curl in you PHP.

Find the php.ini file
If it is installed directly it will be available in your
C:\php or C:\Program Files\PHP folder
If it is installed by xampp it will be available in
C:\Program Files\xampp\apache\bin\ or
C:\Program Files\xampp\php\ or
C:\Program Files\xampp\php\php4\

Add the extension=php_curl.dll if not exist in the php.inc file
of remove the comment ; of extension=php_curl.dll

Add the php_curl.dll file in PHP\ext folder if it is not exist.

Restart your apache server.

check the cURL is installed / not by using phpinfo();

Cheers

No comments: