I've been hosting my site coded in PHP on one shared server. The site worked just fine. So recently I migrated it to a new web hosting service, after which the server started literally outputting contents of the php scripts/files to the web browser!
The .htaccess
file was configured as such (to parse htm
files as php
):
<Files index.htm>
AddType application/x-httpd-php .htm
</Files>
Any idea why it's not parsing them?
PS. I'm also curious how to prevent outputting of PHP scripts to the client browser in plain text in the future?