hey all
this is my script
$user = $HTTP_GET_VARS['user'];
$filesize = filesize("users.txt");
$file = fopen("users.txt", "r");
$filedata = fread($file, $filesize);
while( ! feof($file) or ! $line == $user ) {
$lenofline = strlen($line);
$lenoflines = $lenoflines + $lenofline;
$line = fgets($file, 15);
}
$leftdata = fread($file, $lenoflines);
$templen = $lenoflines + ( strlen($user) + 2 );
$rightdata = substr($filedata, $templen);
print $leftdata.$rightdata;
it comes up with this error
Fatal error: Maximum execution time of 30 seconds exceeded in C:\FoxServ\www\chat.php on line 35
line 35 is the while loop, the script trys to find $user in a text file, and prints the others WITH OUT $user, and it doest wanna work, and I dont know why.. please help?