Using PHP Version 4 and PHP Version 5 |
|
|
We have two versions of PHP installed on all of our servers.
By default, it is PHP version 4.4.1. There is nothing extra to do to use this version. To use php5 ( version 5.2) you have two options - 1) name your scripts .php5 -or- 2) put this line in the htaccess file in public_html, then all php scripts on the site will use php5 AddHandler application/x-httpd-php5 .php _______________________________________________ The following are known issues when using php5 (these are not issues when using php4) - 1. 404 (not found) condition for php scripts does not go to 404 error handling. You will instead get this error message: No input file specified. You can implement a workaround (using a custom 404 page) by putting the following in your .htaccess file: RewriteEngine On Rewritecond % !-f RewriteRule \.php$ /error404.htm 2. If you are using the ANC shared SSL url, then you cannot write flat files with php and you cannot read any file that has chmod 600. This may cause some scripts not to work properly. |
|
Powered by
KBPublisher (Knowledge base software)
Home