How can I use PHP5 with my web hosting plan?
There is no general rule how to switch between PHP versions. Some web hosts allow to choose the PHP version in the server control panel, others support switching it via Apache handler (Apache servers only). In this case, add the following line to your .htaccess file:
AddHandler x-httpd-php5 .php
In case your server requires PHP files to have the .php5 file extension, you can rewrite the requests with the Apache module mod_rewrite. Create a .htaccess file, put it into the root folder of your website and add the following lines:
RewriteEngine on RewriteRule ^(.*).php$ $1.php5
More information on how to configure a live server is available in the user's guide.
Last update on 20.09.2009 by Leo Feyer.