note 23113 deleted from function.fwrite by hholzgra

From: Date: Fri, 12 Jul 2002 14:57:36 +0000
Subject: note 23113 deleted from function.fwrite by hholzgra
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-32982@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.

« previous php.notes (#32982) next »