note 23251 added to function.fgets
| From: | p_pollux at hotmail dot com | Date: | Fri, 12 Jul 2002 20:01:31 +0000 |
| Subject: | note 23251 added to function.fgets | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33002@lists.php.net to get a copy of this message | ||
In reply to the guy saying fgets() does not work for CR when there's no LF immediately after.
You sound like a ticked of Windows programmer. The fact is that UNIX has LF as the line terminator
and Windows has CRLF. This means that fgets() is behaving correctly!
--
http://www.php.net/manual/en/function.fgets.php
http://master.php.net/manage/user-notes.php?action=edit+23251
http://master.php.net/manage/user-notes.php?action=delete+23251
http://master.php.net/manage/user-notes.php?action=reject+23251