We are aware of a potentially service impacting issue. Learn more

PHP5 Migration Information Print

  • 11

1. By default php5 is accessible using .php5 extension to php files. No action is required on your end for it. Just have the php script named something.php5 and it will be processed by php5.

2. To use php5 for all *.php files as default in your entire account, you need to edit ~/public_html/.htaccess file and add this directive:

AddHandler application/x-httpd-php5 .php .php4 .php3 .phtml

This will make the server process all files named .php or .php4 or .php3 or .phtml (and .php5 is already handled) by php5.

After this change, no files under public_html will be processed by the old php4.

If you want to use both php4 and php5, you can create a subfolder in public_html say "testphp5" and add the above mentioned directive in .htaccess there. This way php5 will be used only under that "testphp5" folder and the folder tree under it, the rest of your account will continue to use php4.


Note: 040 Hosting will disable PHP4 at 01-01-2008 unless you have requested an extention, this extention can be extended till 01-08-2008 after this date PHP4 will be removed completely from our servers. If the PHP developers decide to stop creating security patches at an earlier date this date shall change.

We recommend to make this change before 01-01-2008 and update our support staff when you are over on PHP5.


Was this answer helpful?

« Back