How to change the .php on yor files to .html
December 18, 2007 – 1:39 pmGenerally this is a very weak form of security, and by doing this, should NOT be your own step towards making your PHP scripts more secure.<!–more–>
First off to hide your php scripts is to have access to use of the .htaccess directive, whihc is where all the magic works. If you can’t access them get a new host.
Here is the code, this will effect every page with in the level your in, Which means simple put if you want to change a php file that is in a upper level folder, inside that folder you will have to place that .htaccess directive there as well.
# Make all PHP code look like HTML
AddType application/x-httpd-php .htm .html
You must be logged in to post a comment.