From Hiding PHP to PHP.net :
Another tactic is to configure web servers, such as apache, to analyze various file types via PHP, either using the .htaccess directive or in the apache configuration file itself. Then you can use the misleading file extensions:
So, you can add the .htaccess rule, which means that your server processes .tpl , .dlf , etc., as if they were PHP files, for example:
AddType application/x-httpd-php .tpl .dlf .dbh
However, if you use only include or require , it doesn't matter which extension you use:
include "inc/template.tpl"; require "inc/database.dbh"; require_once("inc/config.ext.php.url.tpl.cfg");
Ben
source share