Louise,
As both Azhar and Moonie said, your scripts must be run from webserver. To make Apache pass PHP code to the PHP Interpreter, you need to add the following lines to Apache's httpd.conf:
Run PHP as a CGI process
ScriptAlias /php/ "e:/php/4.0.4pl1/"
Action application/x-httpd-php "/php/php.exe"
or
Run PHP as an Apache Module (much faster)
LoadModule php4_module modules/php4apache.dll
Now define the file extensions you'll ue for php docs. I've shown the common settings, but you put any and all the extensions you want here:
Add mime types for php files
AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps
This assumes that you've properly installed PHP. That is:
1) you've copied the contents of the dll's directory in the PHP distribtion to either c:\windows\system or c:\winnt\system32
2) you've copied php4ts.dll to either c:\windows\system or c:\winnt\system32
3) you've edited php.ini to suit your needs and saved it to c:\windows or c:\winnt
If you want to run PHP as an Apache module, the easiest thing to do is to copy the php4apache.dll (in the SAPI directory of the distribution) to %INSTALL_DIR%\apache\modules. All you should need to do now is restart Apache to get PHP running.
Regarding MySQL, support for the MySQL and ODBC methods are now native to PHP (ie. there's no extensions to load) so you just need to make sure the MySQL server is running, it accepts connections, and you've defined MySQL user accounts with the appropriate permissions.
Piece of cake eh?🙂 HTH.
Cheers,
Geoff A. Virgo