You are here: Re: Newbie needs help with mail function « All PHP « IT news, forums, messages
Re: Newbie needs help with mail function

Posted by Kimmo Laine on 02/20/07 12:04

"Koster, H" <interinfra.haalweg@localhost.localdomain> wrote in message
news:45dac509$0$339$e4fe514c@news.xs4all.nl...
> Op Mon, 19 Feb 2007 10:21:07 +0200, schreef Kimmo Laine:
>
>>
>> \r = carriage return = sets the cursor at the beginning of the row
>> \n = line feed = begins a new line
>>
>> (By your powers combined, I am Captain Carriage Return And New Line!)
>>
>> \r\n in a windows system is the character combination that gives you a
>> new
>> line to write to. This is different in *nix based system, where only \n
>> is
>> needed, the \r is implied. And just to make it fun, this is also
>> different
>> in a Mac system, where only \r is needed and \n is implied.
>
> Thanks, its clear now, but....
>
>> So in total we have three different and fun ways for presenting a new
>> line:
>> \r\n in Windows
>> \n in *nix
>> \r in Mac
>
> .... while windows clearly tried to combine best of both worlds, why
> still does it terribly suck so much?


Windows inherited this behaviour from MS-DOS which was at much lower level
of suckness.

see also: http://www.rfc-editor.org/EOLstory.txt and
http://en.wikipedia.org/wiki/Newline

--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti pδivittyvδ nettisarjis
spam@outolempi.net | rot13(xvzzb@bhgbyrzcv.arg)

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация