Announcement

Collapse
No announcement yet.

PHP5 without .php5 extention?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP5 without .php5 extention?

    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?

    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 -

    Code:
    AddHandler application/x-httpd-php5 .php
    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

  • #2
    maxa, unfortunately the current server settings do not allow PHP 5 scripts to be used with a .php extension in the way that has been pointed out to you by service provider that you have asked. However, I have forwarded your question to our developer and system administrators and they replied that they would try to find another way for providing the functionality in question to PHP 5 scripts used on our web hosting servers.

    Comment

    Working...
    X