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

Wednesday, September 1, 2010

Enable OpenSSL Support for PHP on Windows

As a prerequisite, two libraries must be existing in your Windows system:libeay32.dll and ssleay32.dll. Two ways to achieve this:

Download and Install the Openssl available from the blow url.
http://www.openssl.org/related/binaries.html OR copy these two files to C:\WINDOWS\system32 folder. They’re shipped with PHP package, you can find them in PHP root folder

open php.ini by using any text editor, and remove the semicolon before the following line:

extension=php_openssl.dll

Double check it, and try phpinfo() to see what's output of your PHP