note 41533 added to function.fgets
| From: | anonymous at example dot com | Date: | Tue, 13 Apr 2004 19:17:13 +0000 |
| Subject: | note 41533 added to function.fgets | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68089@lists.php.net to get a copy of this message | ||
The code snippet above is incorrect, and would for a unix text file read an extra following line if
it is blank ('\n' followed by another '\n'). Easily fixed however.
----
Manual Page -- http://www.php.net/manual/en/function.fgets.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41533
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41533&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41533&report=yes
Search -- http://master.php.net/manage/user-notes.php