.php with PHP5 in Apache
Usually, when an Apache web server supports PHP4 and PHP5, the default configuration is .php scripts are handled with PHP4, and .php5 scripts with PHP5 . You can however specify that .php scripts should be handled with PHP5 instead.
To achieve that, you should modify the .htaccess file by adding the following:
AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4
The new handling will apply to all .php scripts in the current directory and it’s sub-directories. PHP4 will looks for the .php4 extension in this case. Note that the second line is necessary, otherwise a handling conflict will occur.




