Home Reseller HostingReseller Hosting Domain Names Client Login Contact  
               
  support@iccmhosting.com      
 
 

ICCM Hosting

 

Web Hosting and Domain Name Registration, Ireland

  www.
 
 

Scripting

Is php5 available? How do I use php5 alongside php4?

All ICCMHosting servers have php5 alongwith php4. To use php5, please note the following important points:

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 viola 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:

# Use PHP5 as default
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 old php4.

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

3. To make changes to php configuration, you will need to install php.ini in public_html folder (or the DOCUMENT_ROOT of subdomain/addon domain i.e public_html/subdomain).

NOTE: In the current php5 implementation, php5 will pick php.ini in the following precedence:

local folder (higher precedence) : public_html (or DOCUMENT_ROOT) : default global php.ini (at server level)

4. register_globals is off by default and will remain off. It is said that php6 will not have register_globals, so it is a good time to fix your scripts not to depend on it. But if you need to turn it on, you can do that using your php.ini file.






 
 
 
Click here to enter shop

Information

 

Price List

 
Full Domain Price List
   
   
Order Now  
   
 
 
 

Copyright (c) ICCM Hosting. All rights reserved.

Website Design   |   Privacy Policy   |   Contact