Hi,

I need to install Curl on a local testing server that's running Apache but for the life of me cannot figure out how to install it on a windows machine. The Curl website say's i have to compile it, is there any other way and if you do have to compile it how do you go about that? Thanks a million

Casey

    (Assuming XP, PHP5; you don't specify otherwise.)

    No compiling needed. Add the PHP directory (e.g. "c:/php") to your path if it's not already there. Find (from the PHP distribution files) "ssleay32.dll" and "libeay32.dll" and copy them to the PHP directory. Find "php_curl.dll" and copy it to the "ext" subdirectory of the PHP directory (e.g. "c:/php/ext"). Make sure the "extension_directory" directive in "php.ini" points to that subdirectory. Uncomment the line "extension=php_curl.dll" in "php.ini". Restart Windows (if you changed the path variable), and (re-)start Apache.

      Bear in mind that you don't actually need curl installed to make http requests from php, you can use fopen() instead with the http wrapper, which works just as well and is built-in.

      Mark

        Write a Reply...