I think its fixed now.
It was only happening on 2 of my domains and in both the .htaccess file had one line:
AddType application/x-httpd-php .html
I don't know what this line is supposed to do but when I took it out everything worked fine.
Thanks for the help everyone.
