GoDaddy Support

PHP

1 2 3

Installing PEAR on Linux Web Hosting

Posted: 11/5/15 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 [...]

Do you disable any PHP functions on your Linux hosting accounts?

Posted: 11/5/15 in PHP

The PHP 5 function register_globals is turned off by default.
To change the status of a function, you can use custom initialization (php5.ini) files. For more information, see What filename does my PHP initialization file need to [...]

PHP Compatibility and Hosting Quick-Install Applications

PHP is a popular and simple server scripting language that enables Web developers to embed dynamic content into Web pages. PHP 5 is enabled for all Linux hosting accounts. PHP 5 is enabled for Windows hosting accounts running IIS 7, only.

For information on migrating an existing hosting account, [...]

Viewing or Changing Your PHP Language Version

Posted: in PHP

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

Finding Your Account's PHP Version Using Phpinfo

If you need to see exactly what PHP version you use, you can find out with a PHP info script.

PHP Upload Limits on Shared Hosting

Posted: 10/3/15 in PHP

Your default PHP upload limit depends on the type of hosting account you have (more info):

table {border-collapse: collapse; color: #333; margin: 1.2rem 0;}

tr:nth-child(odd) {background-color: #f7f7f7;}

tr:nth-child(1) {background-color:#ddd;}

th{ border-right: 1px solid #ddd; padding: 5px; text-align:left;}

td{border: 1px solid #b2b2b2;padding: 5px;vertical-align:top;}

td:nth-child(1) {font-weight:bold;}

Type
Default upload limit
Max

cPanel
32 MB
No limit

Plesk
10MB
2GB

Web
32 MB
128 MB

Classic
32 MB
64 MB

Changing your PHP upload limit
To [...]

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

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

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

United States - English
Traffic Log Image