Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

maximum time used up

Status
Not open for further replies.

robertd18

Technical User
Jan 14, 2003
32
US
Hi i get this error when i run my script

Fatal error: Maximum execution time of 60 seconds exceeded in /home/virtual/site23/fst/var/ on line 68

the code where this is going on

function getfile($filename)
{
global $flock;
$fh = fopen($filename, 'r');
if ( $fh == false )
dienice("Couldnt open $filename: !");
if ($flock == '1')
{
flock($fh, LOCK_SH);
}
$data = array();
while ( !feof($fh) )
{
$data[] = fgets($fh, 1024000);
}
fclose($fh);

for ($i = 0; $i < count($data); $i++)
{
$data[$i] = rtrim($data[$i]);
}
return $data;
}

can anyone help? thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top