View Single Post
  #10 (permalink)  
Old Mar 28th, 2008, 05:53
Tyrik Trent Tyrik Trent is offline
Junior Member
Join Date: Mar 2008
Location: NJ
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Website Hosting - Any ideas

Quote:
Originally Posted by webcreationuk View Post
Hi All,

We recently upgraded our hosting but still find the uploads to be quite time consuming.

Any ideas on how to increase this without paying millions?

Your feedback woud be fab.

Thanks,

David Webb
This code will help you.

?php
// Put all the php.ini parameters you want to change below. One per line.
// Follow the example format $parm[] = "parameter = value";
$parm[] = "post_max_size = 10M";
$parm[] = "register_globals = Off";
$parm[] = "session.use_trans_sid = 0";
// full unix path - location of the default php.ini file at your host
// you can determine the location of the default file using phpinfo()
$defaultPath = '/usr/local/Zend/etc/php.ini';
// full unix path - location where you want your custom php.ini file
$customPath = "/home/airlinez/public_html/php.ini";
// nothing should change below this line.
if (file_exists($defaultPath)) {
$contents = file_get_contents($defaultPath);
$contents .= "\n\n; USER MODIFIED PARAMETERS FOLLOW\n\n";
foreach ($parm as $value) $contents .= $value . " \n";
$handle = fopen($customPath, 'w');
if (fwrite($handle, $contents)) {
fclose($handle);
if (chmod($customPath,0600)) $message = "The php.ini file has been modified and copied";
else $message = "Processing error - php.ini chmod failed";
} else {
$message = "Processing error - php.ini write failed";
}
} else {
$message = "Processing error - php.ini file not found";
}
echo $message;
?>


we have been with Drupalvaluehosting.com not such problems with them, look at them once.

Thanks
Reply With Quote