Hi all,
Thanks for trying to help. For the benefits of those first timer like me trying to get PhP CGI version 4.2.2 to run on Windows using IIS, here is the detail step by step instruction that I copied from one the PhPBuilder contributors. (found it by chance). I presumed that IIS and PHP has already been installed on the PWS.
;;; Instructions ;;;;;;;
• In the Windows Control Panel, open Administrative Tools | Internet Information Services.
• In the tree view, expand the entry labeled local computer, then under Web Sites look for Default Web Site (unless you have virtual hosts set up, in which case, choose the site you want to add PHP support to). Right-click on the Web Site and choose Properties.
• Click the ISAPI Filters tab, and click Add.... In the Filter Name field, type PHP, and in the Executable field, browse for the file called php4isapi.dll in the sapi subfolder of your PHP folder (e.g. C:\PHP\sapi\php4isapi.dll). Click OK.
• Click the Home Directory tab, and click the Configuration... button. On the Mappings tab click Add. Again choose your php4isapi.dll file as the executable and type .php in the extension box (including the '.'). Leave everything else unchanged and click OK. If you want your Web server to treat other file extensions as PHP files (.php3, .php4, and .phtml are common choices), repeat this step for each extension. Click OK to close the Application Configuration window.
• Click OK to close the Web Site Properties window. Close the Internet Information Services window.
• Again, in the Control Panel under Administrative Tools, open Services. Look for the World Wide Web Publishing service near the bottom of the list. Right-click on it and choose Restart to restart IIS with the new configuration options. Close the Services window.
• You're done! PHP is installed!
Enjoy.
Cheers,
Lennie