Forum Moderators: coopster
Sounds to me like an installation [php.net] issue, you aren't parsing PHP yet on the server. If you are running your own server, you need to add a couple of lines to let the server know how to handle php files.
I think you should make sure your server is parsing php files first. What I would do is make sure I don't have any per-directory override files (.htaccess) in my root directory. Next, create a simple php script:
<?phpSave it with a .php extension, something like mytest.php and upload it to the root directory. Open a browser window and request that script..
phpinfo();
?>
http://www.example.com/mytest.php
Using the application/x-httpd-php header in your PHP installation is optional. What it SHOULD be returning is text/html.
In fact, it does that by default so I'm wondering why your installation is set up to use application/x-httpd-php at all.
The modification is made in php.ini and is called "default_mimetype". It can be changed using ini_set:
ini_set('default_mimetype', 'text/html');
Try using that and see if you still get it.