You are Here: FAQ ->Scripting and Programming Languages->PHP->Article #9


WebHosting 5.0 This article is for 1&1 Linux WebHosting only.


What do I need to consider if I want to use PHP 5?



With 1&1 Linux hosting packages you have the choice between PHP 4 and
PHP 5. To distinguish a script as PHP 5, simply name the script with the file
extension .php5.

While the PHP developers have done their utmost to ensure compatibility, we cannot
guarantee that PHP 4 scripts will function 100% correctly under PHP 5.

Please note that in contrast to PHP 4, the default for the variable RegisterGlobals
is "off".

By default Apache uses PHP 4 for .php extension. If you don't want to rename all your
scripts to .php5 you can do the following:
Create a .htaccess file and place the following line AddType x-mapp-php5 .php in it.

This will tell Apache to use PHP 5 instead of PHP 4 for the extension .php in the
directory the .htaccess is placed and all sub-directories under it.

You can use AddHandler x-mapp-php5 .php as an alternative for or instead of
AddType x-mapp-php5 .php


Print Article
How useful was this article?
(From 5 = Very Useful to 1 = Not useful at all):
1 2 3 4 5