Check to make sure your PHP installation is setup to parse the file extensions you are using for your PHP files. For eample if you have script.php3 then php may not recognize files ending in php3. If after checking that it still does not work please provide more detailed information as to what is going on.
Originally posted by WhSox21
PHP isn't even working so that wouldn't even help.
I'm pretty new to apache and php, but your problem most likely lies with what digioz said. If you did all that, check to make sure that:
A.) Apache is actually running. When I installed apache and tried to configure it for PHP, there was a file you had to copy from the php files into the apache files (or was that mysql???) and I didn't copy all the files over. I didn't realize apache failed to start running because it couldn't find a file. It was telling me one file was missing, when in actuality it was missing another file.
B.) You are retrieving the file through the server i.e.: "http://localhost/afile.php" and not "C:\Programs\apache\httpdocs\afile.php" doing the latter will not get apache to parse the script and you'll just get the code.
Sorry if you know all that, but when I just started using apache and php I made similar mistakes.