Hello,
Another web host says there is a possibility on their servers to use PHP4 and PHP5, both with the .php5 extension (as on RSP servers), but also by using a separate folder for PHP5 if you add a .htaccess with the below config. My question is if perhaps the same solution works on RSP servers too?
Another web host says there is a possibility on their servers to use PHP4 and PHP5, both with the .php5 extension (as on RSP servers), but also by using a separate folder for PHP5 if you add a .htaccess with the below config. My question is if perhaps the same solution works on RSP servers too?
There are two very simple ways you can take advantage of PHP5 support under your account -
* 1) Simply name the script you wish to execute using PHP5 .php5 instead of .php. That's all you need to do.
* 2) Alternatively, if you would like scripts named .php to execute using PHP5 instead of PHP4 then simply drop the following contents into a .htaccess file within the directory containing the PHP5 script -
By default all scripts named .php or .php4 will execute using PHP4 unless you are using the above .htaccess directive and scripts named .php5 will execute using PHP5
* 1) Simply name the script you wish to execute using PHP5 .php5 instead of .php. That's all you need to do.
* 2) Alternatively, if you would like scripts named .php to execute using PHP5 instead of PHP4 then simply drop the following contents into a .htaccess file within the directory containing the PHP5 script -
Code:
AddHandler application/x-httpd-php5 .php
Comment