Tom,
When running PHP4 in CGI on win32, php4ts.dll and msvcrt.dll MUST be somewhere in your system path. Rather than start spilting the distribution up, I found the easiest way to install was by creating c:/windows/system/php4 and tossing all the files in the distribution into it. Once this is done, you will need to add/edit the following in your httpd.conf:
// script alias to tell apache the path to the PHP4 executable
ScriptAlias /php/ "c:/windows/system/php4/"
// definitions to tell Apache which extensions to parse with PHP4
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
// action directive for the PHP4 engine
Action application/x-httpd-php "/php/php.exe"
If you want to use .phtml, .php, or .php3 files as directory indexes, fnd the DirectoryIndex directive and add those extensions in before .html. For example:
// directive to tell Apache which files, and in which order, to use as the default // directory index
DirectoryIndex index.php index.php3 index.phtml index.html index.shtml
This is the config I use on my server (SSL-Aware Apache 1.3.12 w/PHP 4.0.1.pl2 on Win98). Hope this helps!!!
Geoff
www.mithril.com