I have found this issue when using a .htaccess file combined with a incorrectly configured handler.
I had this handler defined
AddHandler php5-script .php
But when I looked (googled) I found I needed to define a type handler which instructed apache to return a particular MIME type.
AddType application/x-httpd-php5 .php