NOTE: This content only applies to our Linux shared hosting accounts running Hosting Configuration 2.0 and above.
PHP is automatically added to your hosting account. However, you can choose the version you’d like to use.
To Change Your Default PHP LanguageLog in to your Account Manager.
In the My Products section, select Hosting.
Next to the hosting [...]
No. Our hosting plans do not support non-parsed headers (NPH).
If you have older CGI scripts that are meant to run on apache/1.2, or are known as NPH scripts, then remove any lines that print out the HTTP headers, such as HTTP/1.1 200 OK, and your scripts will work properly.
Error Message(s):
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 started at /home/content/u/s/e/username/html/file.php:2) in /home/content/u/s/e/username/html/file.php [...]
Other than the total available disk space in your Shared hosting account, we do not set any FTP upload limit. However, by default, PHP limits scripts uploading files to 8 MB. To change the limitation, edit the following values in your /php.ini file for PHP4 or /php5.ini file for PHP5:memory_limit = 50M
post_max_size = 10M
file_uploads = [...]
For security reasons, we run PHP as a CGI and not as a module. Because of this and the version of Apache we run (1.3.3), you cannot use extensionless PHP files on your website without employing a tool like mod_rewrite.
For more information, see What is mod_rewrite?.
We try to make the most popular modules available to our hosting customers in a timely fashion. To request a module we do not currently offer, please contact technical support. While we are unable to immediately install every requested module, we track all module requests and make them available as default modules based on the [...]
Here is the Lowdown: PHP initialization files can manage form, server, and environmental variables as well as server-side cookies, temporary directories, error display, and error logging.
Your ability to add a php.ini file to your hosting account depends on the type of hosting account you are running:Windows IIS6 accounts do not support PHP.
Windows IIS7 accounts always [...]
All “temp” files created in the /tmp directory on our Linux servers will be deleted if they have not been accessed for 720 hours (30 days).
Yes, we do. You can use fsockopen on all of our PHP-enabled hosting plans for TCP ports 80 and 443.
Below is a code sample for connecting to a MySQL database using PHP.
<?php
//Sample Database Connection Syntax for PHP and MySQL.
//Connect To Database
$hostname=”mysql.secureserver.net”;
$username=”your_dbusername”;
$password=”your_dbpassword”;
$dbname=”your_dbusername”;
$usertable=”your_tablename”;
$yourfield = “your_field”;
$connection = mysql_connect($hostname, $username, $password);
mysql_select_db($dbname, $connection);
# Check If Record Exists
$query = “SELECT * FROM $usertable”;
$result = mysql_query($query);
if($result)
{
while($row = mysql_fetch_array($result))
{
$name = $row["$yourfield"];
echo “Name: “.$name.”
“;
}
}
?>
PHP 4
We do not disable any PHP 4 functions on our Linux hosting accounts.
PHP 5
The PHP 5 function register_globals is turned off by default.
To change the status of a function, you can use custom initialization files. For more information, see How do I add a PHP initialization file to my hosting account?
No, we do not run PHP in safe mode on our Linux hosting servers.
For more information on safe mode, please visit www.php.net.
All of our Linux hosting accounts support the use of PHP-Nuke. Please check out the available PHP online forums for specific product help, including installation and configuration instructions.
Unfortunately, our Windows hosting accounts do not support the use of PHP-Nuke at this time.
www.phpmyadmin.netwww.nukecops.comPHP-Nuke Forum