I've been bothered over the last year that the default httpd.conf file in the apache rpms from Redhat use .php3 as the default extention for php3 files and .phtml as the extention for php2. I've always thought that .phtml(or maybe just .php) was the more logical choice for what represents "current" version php files. Since php3 and php4 are syntatically compatible as far as I can tell it would make migrating pages to php4 much easier. If we keep on using .php<version-number> as the default extension name, it will be more difficult to make upgrades. So I think that instead the following directives should be used: # For PHP3 and up. <IfModule mod_php3.c> AddType application/x-httpd-php3 .phtml AddType application/x-httpd-php3-source .phps </IfModule> # The following is for PHP/FI (PHP2): <IfModule mod_php.c> AddType application/x-httpd-php .php2 </IfModule>
This is the way the PHP team does it. It might seem like a good idea to change it, but changing this would make our setup incompatible with just about every piece of documentation out there (the FAQ at http://www.php.net/FAQ.php3, to name just one example).