I am trying to set up PHP with Apache, and I can not get the installation to work properly.
When I execute php files from the root using http://localhost/phpinfo.php, they seem to work well, but when I run a php file from a html file, it gives me a download dialog for the php file. If I choose “open” the dialog box goes away, and the php file does nothing.
I have uninstalled and re-installed both Apache and PHP several times, using different installation parameters, all with the same results.
I am using the latest version of Apache 2.2, and PHP version 5.2.1, on Windows XP-SP2, set up as a local host only to be used for working on the html/php code.
Any ideas hoe to get this to work?