note 23113 added to function.fwrite
| From: | fattydesign@php.net | Date: | Tue, 09 Jul 2002 20:22:26 +0000 |
| Subject: | note 23113 added to function.fwrite | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32816@lists.php.net to get a copy of this message | ||
This \r \n business has me rather angry. The reason that #10, #13, and #10#13 have to be switched
between to cross platforms has to do with the difference in interpretation of carriage return and
line feed from our typewriter heritage.
C invented \n to *get* *rid* *of* the problem, and apparently now PHP has chosen \n to mean one or
the other. This behavior is incorrect.
In typical usage, it is correct simply to use \n.
A note for the above: for DOS/Windoze machines, it is not #13#10, but the other way around: #10#13.
Most programs will interpret the preceding erroneous directions happily, but please realize that
they've them backwards.
--
http://www.php.net/manual/en/function.fwrite.php
http://master.php.net/manage/user-notes.php?action=edit+23113
http://master.php.net/manage/user-notes.php?action=delete+23113
http://master.php.net/manage/user-notes.php?action=reject+23113