It gives us great pleasure to announce that both versions of PHP can now be used and run simultaneously on our servers!Several clients had expressed a desire to have PHP5 installed on our servers so they can have the latest and greatest software. We have been listening to your suggestions and we’re happy to say it’s now installed and fully up and running! We had been looking into ways of implementing it to run alongside PHP4 so that existing PHP scripts and websites do not break.
In order to run a PHP5 script, simply add the following line into your .htaccess file, which will force your .PHP files to be handled by the new PHP5 system:
AddHandler application/x-httpd-php5 .php .php4 .php3 .phtml
If you wish to leave your .PHP files to run as PHP4 (like they do now) and only have .php5 files run on PHP5, simply add the following line to .htaccess:
AddHandler application/x-httpd-php5 .php5
Note: .htaccess files affect the entire folder as well as any folders under it. So if you wanted to run PHP5 only for files inside a folder called "php5-files", then you would simply create the folder and put your .htaccess file inside that folder. Only files inside the folder and any folders under it will use PHP5 -- everything else will continue to use PHP4.
As always, if you have any questions, please contact us via the
HelpDesk or
support@cyberhostuk.net.