- Product Support
Your PHP version displays in the Server section of the Hosting Control Center Dashboard.
Warning: session_start(): Cannot send session cookie – headers already sent by (output started at /home/content/u/s/e/username/html/file.php:2) in /home/content/u/s/e/username/html/file.php on line 3
Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /home/content/u/s/e/username/html/file.php:2) in /home/content/u/s/e/username/html/file.php on line 3
Warning: Cannot modify header information – headers already sent by (output [...]
PHP initialization files can manage form, server, and environmental variables as well as server-side cookies, temporary directories, error display, and error logging. You can look at the directives these files can control in PHP’s documentation.
The file name your PHP initialization must use depends on the type of hosting account you [...]
This article only applies to Web & Classic Hosting. For more information, see What type of hosting account do I have?
The file PEAR provides (go-pear.php) currently has a bug that prevents its default implementation from working. We have steps to correct it outlined in this article, but it requires manually [...]
A PHP initialization file is not always immediately recognized by shared hosting accounts’ servers. Here are tips for making sure it does take effect.
Things to Check
Make sure you’re using the correct filename (more info).
Understand your PHP initialization file’s refresh rate:
cPanel offers built-in error logging, but it doesn’t catch errors generated from PHP and doesn’t keep error logs for extended periods of time. To remedy this, you can have PHP store errors it encounters in your own error log file.
To Set up Custom-Defined Error Logs in cPanel
Create a file called [...]
Linux hosting accounts support PHP 5. Depending on the contents of your .htaccess file, you can use a .php5 file extension.
For information on using extensionless PHP files, see Can I use extensionless PHP files?
For additional information on supported programming languages, see Which programming languages do you support with [...]
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 [...]
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 [...]
If your account has PHP 4 support enabled, it can also run PHP 5 applications by using .PHP5 files.