cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > libcurl > PHP Binding > Install

Installing the PHP/CURL binding

You might also find it helpful to install Apache + PHP + CURL + SSL using the Apache Toolbox. Check further down for Windows install.

Manual Build and Install

Build OpenSSL (In openssl-0.9.x directory)

./config
make
make test
make install

Build CURL (In curl-7.x.x directory)

./configure --with-ssl=/usr/local/ssl (if ssl was installed here)
make
make install (libcurl.so is now in /usr/local/lib)

Build PHP (In php-4.x.x directory)

./configure --with-openssl=/usr/local/ssl \
  --with-curl=/usr/local/lib --with-apache=../apache_1.3.x
make
make install

Build and install SSL-aware Apache (In mod_ssl-2.8.xxxx directory)

./configure --with-apache=../apache1.3.x --with-ssl=/usr/local/ssl \
  --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a
Follow remaining steps the output tells.
Restart your apache... BINGO!

(contributed by Lim Chung Keng)

Windows

Activation of PHP/CURL on windows is starting up notepad (or similar) and removing a semicolon from the following line in php.ini:

;extension=php_curl.dll
(Mentioned here: php.net/manual/install.windows.extensions.php)

libcurl is statically linked in, but the SSL libraries are not, thus the note to Win32 users on php.net/curl. The two SSL-related DLLs from the OpenSSL project (libeay32.dll and ssleay32.dll) are bundled with the Windows PHP package.

In order to SSL-based protocols (such as HTTPS and FTPS) in your Windows environment, you must copy libeay32.dll and ssleay32.dll from the DLL folder of the PHP/ binary package to the SYSTEM folder of your Windows machine. (Ex: C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM).

(Michael Wallner contributed to this)

donate! Page updated December 08, 2009.
web site info

File upload with ASP.NET