note 2469 deleted from fclose by ronabop
| From: | ronabop@php.net | Date: | Sun, 13 Aug 2000 00:23:50 +0000 |
| Subject: | note 2469 deleted from fclose by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1781@lists.php.net to get a copy of this message | ||
why this code can't work?
<PRE>
$fd=fopen("some.txt","r");
print fgets($fd,512);
fclose($fd);
</PRE>
if I fclose a file then the php script will not work at all, I tried : GET /some.php3, and was
immediately disconnected from server. but if i comment out the fclose line, it works well. who can
tell me why? thx. I'm running php 3.0.7 on rh linux/apache 1.3.6