It took me ages to get that darn thing cURL with PHP/APACHE/WINDOWS working but with some help from a text-file I stumble upon I got it finally going.
Here is how it goes:
==========================================================
1. Only install PHP with the zip'd binaries. Don't use the installer. I recommend deleting your current PHP installation and reinstalling with the binaries. Downloading the latest PHP has the added benefit of ensuring its compatible with the version of cURL you'll download later. (I installed to D:\apps\php and will use that path for the rest of this example)
2. Edit your php.ini file:
- set extension_dir to d:\apps\php\extensions
- set register_globals to On
- set session.save_path to d:\apps\php\temp (you need to create that directory first)
3. Copy php4ts.dll to your Apache bin folder
4. Copy libeay32.dll and ssleay32.dll to c:\WINNT
5. Download cURL for Windows at:
http://curl.haxx.se/download.html. I chose the Win32 - Generic by Jörn Hartroth. I recommend getting the SSL version in case you ever need SSL. I unzipped cURL to d:\apps\curl and will use that path for the rest of this example
6. [SSL INSTALL ONLY] Download OpenSSL for Windows from
http://curl.haxx.se/download.html. (Its near the bottom of the page). Extract libssl32.dll to d:\apps\curl
7. [Windows XP Install Only] Check to see if you have the following file: c:\windows\system32\msvcr70.dll. If not, search for it in Google and download it to system32. You may get error messages without it.
8. Uncomment the curl line in your php.ini file to enable curl: extension=php_curl.dll
9. Finally edit your Apache httpd.conf file to enable php:
- Add Line: LoadModule php4_module d:/apps/php/sapi/php4apache2.dll
- Add Line: AddType application/x-httpd-php .php
==========================================================
source:
http://www.tonyspencer.com/journal/00000037.htm (little modified)
Thank you Tony Spencer for helping me out and thank you wjue for this excellent module and also for x-agenda!
With best regards,
Kisuk