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
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