GoDaddy Support

PHP

1 2 3

Viewing or Changing Your PHP Language Version

Posted: 10/2/15 in PHP

Your PHP version displays in the Server section of the Hosting Control Center Dashboard.

What do I do when I receive a PHP header error message?

Posted: 2/2/15 in PHP

Error Messages:
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 [...]

What filename does my PHP initialization file need to use?

Posted: in PHP

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 [...]

Installing PEAR on Linux Web Hosting

Posted: in PHP

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 [...]

Why isn't my PHP initialization file taking effect?

Posted: 9/12/14 in PHP

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:

[...]

Setting up Custom-Defined PHP Error Logs in cPanel

Posted: 3/11/14 in cPanel
PHP

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 [...]

Which PHP file extensions can I use with my hosting account?

Posted: in PHP

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 [...]

Using Server Variable ($_SERVER) Elements with PHP 5

Posted: in PHP

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?

Posted: in PHP

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 [...]

Can I run both PHP 4 and PHP 5 applications on my hosting account?

Posted: in PHP

If your account has PHP 4 support enabled, it can also run PHP 5 applications by using .PHP5 files.

1 2 3
NEED HELP? Call our award-winning support team 24/7 at (480) 505-8877
Submit

United States - English
Traffic Log Image