Could you tell me the exact steps you took??
These are the steps to a successful PHP4/Apache install.
Step1. Download & Unzip the PHP 4 source to C:PHP4
Step2. Copy MSVCRT.DLL (it may already exist in there)
and PHP4TS.DLL to C:WindowsSYSTEM (or C:WindowsSYSTEM32 if your on NT)
Step3. Re-Name & Copy 'php.ini-dist' to C:Windows.
Step4. Edit PWD-php4.reg to reflect the directory your php4 files are in. It SHOULD(if you follow all my directions EXACTLY) be like this:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
REGEDIT4
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesw3svcparametersScript Map]
".php"="C

hpphp4isapi.dll"
[/quote]
Step5. Goto the Apache conf Dir, should be something like...
C:Program FilesApache GroupApacheconf
Open httpd.conf and find section:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
[/quote]
Add this after that:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
ScriptAlias /php4/ "C:/PHP4/"
[/quote]
Don't close httpd.conf yet!
Find this section:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
#
# To enable the cache as well, edit and uncomment the following lines:
# (no cacheing without CacheRoot)
#
#CacheRoot "C:/Program Files/Apache Group/Apache/proxy"
#CacheSize 5
#CacheGcInterval 4
#CacheMaxExpire 24
#CacheLastModifiedFactor 0.1
#CacheDefaultExpire 1
#NoCache a_domain.com another_domain.edu joes.garage_sale.com
[/quote]
Add this after:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
AddType application/x-httpd-php .phtml .php .php3
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /php4/php.exe
[/quote]
Save & Close httpd.conf.
Step5. Now, make a file which contains EXACTLY this:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
<? phpinfo() ?>
[/code]
Save it to the htdocs directory, or whatever your Root directory is. Name it whatever you would like, but make sure it ends in .phtml, .php, or .php3. Run Apache, and then execute this file. If you see...
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
<? phpinfo() ?>
[/quote]
It did NOT work. If you see a page with lots of stuff on it, with info about your php and MySQL and other stuff status, then it worked!
Step6. Place Any & All php scripts in the Root directory(standard:
C:Program FilesApache GroupApachehtdocs)
And they will be executed. You can execute a php script from ANYWHERE in the Root directory, even sub directorys of the root dir.
Step7. Enjoy!!!=)
Good luck, and remember...this will
only work, if you follow these instructions
exactly how they are explained, and you're using Windows 9x/2k/NT.
^N|R
[This message has been edited by Nobodys Real (edited August 01, 2000).]