PHP 5
Can I run both PHP 4 and PHP 5 applications on my hosting account?
If your account has PHP 4 support enabled, it can also run PHP 5 applications by using .PHP5 files.
If your account does not have PHP 4 support enabled, you cannot use PHP 4 applications.
For more information, see Viewing or Changing Your PHP Language Version.
NOTE: Our Windows hosting, WordPress®, and [...]
What versions of PHP are available on my Linux hosting account?
Our Linux grid hosting accounts can support PHP 5.2.14, 5.2.17, or 5.3.6. Older shared hosting accounts that had PHP 4 enabled support 4.3.11 but can be upgraded to PHP 5 at any time. Currently, PHP 5.2.17 is the highest version allowed for shared accounts. For more information, see Viewing or [...]
Viewing or Changing Your PHP Language Version
Your Linux hosting account automatically supports PHP based on the following criteria:
All new accounts only support PHP 5.
Older accounts supporting PHP 4 can upgrade to PHP 5.2 or PHP 5.3.
You cannot downgrade any account from PHP 5 to PHP 4.
NOTE: Windows hosting accounts cannot support PHP 4, and only support [...]
Can I use PEAR with PHP 5.x?
Yes. Our Linux hosting accounts using PHP 5.2 have PEAR libraries installed in the following locations:
/usr/local/php5/lib/php/PEAR.php
/usr/local/php5/lib/php/PEAR/*
The PEAR binary is installed at the following location:
/usr/local/php5/bin/pear
However, to make sure all PEAR modules work properly, you must modify your php5.ini file to include:
include_path = “.:/usr/local/lib/php”
To make sure your account uses PHP 5.2, see [...]
Using Server Variable ($_SERVER) Elements with PHP 5
Our Linux hosting accounts run in CGI mode. When PHP 5 runs in this mode, the server variable element PATH_INFO behaves differently than under PHP 4. PHP 5 scripts can use the element SCRIPT_NAME in place of PATH_INFO to ensure the expected value is [...]
Can I use the PHP 4 domxml module with PHP 5?
The PHP 4 domxml module is not supported in PHP 5 and has been replaced with the dom module. When moving to PHP 5, any scripts using domxml module functions must be modified to use dom module [...]
Which PHP file extensions can I use with my hosting account?
Linux hosting accounts running Hosting Configuration 2.0 and above support both PHP 4 and PHP 5. Depending on the contents of your htaccess file, the following PHP file extensions can be used: .php, .php4, and .php5.
For information on using extensionless PHP files, see Can I use extensionless PHP [...]
0 min expected wait time