Why?
Most web hosting companies now are running *both* php4 and php5 at the same time. It would be nice to allow the end-user customer an easy way to "switch" between them, since most customers are stupid and don't know how to do this. But with the end-of-life announcment for PHP4.. many customers are now asking us if we support PHP5 and how to switch to it, etc...
So it would be nice to just point them to a cpanel/rvskin button.
How?
Switching between the two version is a simple matter of adding/modifying a few lines in the .htaccess file so that .php files are interpreted by the correct version of PHP.
For example, this will "switch" .php files to be interpreted by PHP5 on most servers:
CODE
AddType application/x-httpd-php5 .php
AddHandler application/x-httpd-php5 .php
AddHandler application/x-httpd-php5 .php
Switching "back" would just mean removing the .htaccess lines that were added. Of course, this might be a little different on various systems, but most would be very similar and I doubt there are too many possible changes to this...
It would be a nice rvskin feature.
Help
This topic is locked











