ErrorLog problem
| From: | Jan Pavl�k | Date: | Fri, 29 Mar 2002 07:47:27 +0000 |
| Subject: | ErrorLog problem | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-81907@lists.php.net to get a copy of this message | ||
Hi,
I have problems with logging events in PHP. When some user write example
script from PHP.NET:
$fd = fopen ("/tmp/nonexists.txt", "r");
while (!feof ($fd)) {
$buffer = fgets($fd, 4096);
echo $buffer;
}
fclose ($fd);
And when the file not exists, it run 30 seconds and the ended, but my
errorlog is full with one errormesage about nonexistent handler $fd.... Can
PHP log only first error and the next (the same, copy of the first) throw
out?
P.S. Sorry for my English :)
--
Jan PAVLIK
gandie@rootshell.cz
ICQ 6611951
ROOTSHELL.CZ - Make it easy and better!