Hi,
I have some PHP code inside .html files, which was working fine until a couple of days ago.
Today, I noticed that all PHP files on my account were being downloaded. So, I had updated my .htaccess file to add 'AddHandler application/x-httpd-php5 .html .htm'. This prevented the files from being downloaded, but the code was NOT being executed (All PHP code was displayed as HTML).
I also noticed that if I didn't add 'index.html' to my site URL, it still caused the file to be downloaded. From another post, I added 'AddType text/plain .*' to my .htaccess file. This prevented the file download, but the the PHP code inside my HTML file is not being executed.
Is there something else I need to update?
Thanks!
I have some PHP code inside .html files, which was working fine until a couple of days ago.
Today, I noticed that all PHP files on my account were being downloaded. So, I had updated my .htaccess file to add 'AddHandler application/x-httpd-php5 .html .htm'. This prevented the files from being downloaded, but the code was NOT being executed (All PHP code was displayed as HTML).
I also noticed that if I didn't add 'index.html' to my site URL, it still caused the file to be downloaded. From another post, I added 'AddType text/plain .*' to my .htaccess file. This prevented the file download, but the the PHP code inside my HTML file is not being executed.
Is there something else I need to update?
Thanks!