There are currently 2 major PHP versions in use; PHP 4 and PHP 5. PHP 5 is not 100% backward-compatible with PHP 4 (the way some things are done have changed), so your PHP 4 scripts may not run under PHP 5.
On our servers the default PHP version is 5.3.x. This is compatible with most scripts currently available. Unless your scripts require PHP 4, we suggest you use PHP 5.
We also provide support for PHP 4.4.x. You can have a mix of PHP4 and PHP5 scripts on your site. To use PHP 4, use one of the following methods:
- Rename your script so that it ends in ".php4" (instead of ".php"), e.g. "info.php4". If you have a small number of files or are writing your own scripts, this is probably the easiest option.
- Create a .htaccess file in the directory containing the PHP script with the following line. This will cause all scripts ending with ".php" to be executed under PHP 4. All subdirectories will also be affected.
AddHandler application/x-httpd-php4 .php
If you already have a .htaccess file, just add the line shown above to the bottom of your existing .htaccess file.