How to change the .php on yor files to .html

December 18, 2007 – 1:39 pm

Generally 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.


Powered by WordPress

Please do not copy any material on this site. Dragon Ball, Dragon Ball Z, and Dragon Ball GT was created by Akira Toriyama and is copyrighted productions of Bird Studio and Toei Animation. All rights reserved. Dragonball is currently licensed in the U.S. by Funimation.