Hi Alex
Hope this helps. I installed php with pws4 and i got it right. Here is how i did it.
Assuming you unzipped php and related files to c:/php
Copy php4ts.dll and msvcrt.dll(might already be there) to c:/<windir>/system
copy php.ini-dist (not the opt one, seemed to give me probs when working with mysql) to <windir> and rename it to php.ini. You can open it and make any alterations you want but i don't think you would need to
In the php folder you will see a PWS-php4.reg file. Edit it and change it to
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map]
".php"="C:\php\isapi\php4isapi.dll"
You replace <windir> with ur windows directory and the above registry entry with the proper php path. Just remember to tag the slashes with another slash
In the PWS manager, go to the directory where you want to add php support, right click and select Properties and then check the "Execute" check box.
Last but not the least, do what windows loves you to do - SHUT DOWN AND RESTART
Hope the above was not boring and was helpful