Obviously it's not "\r\n",which only fits windows,and will cause ^M on linux
A:
a new line in php is just "\n". should work on all platforms.
AvatarOfChronos
2009-06-13 00:43:08
Don't we all use "\r\n" on windows?
Shore
2009-06-13 01:16:03
Using "\n" has always worked for me as a newline in php. and I've worked in both Linux and Windows environments.
AvatarOfChronos
2009-06-13 02:18:47
Yes..., why would you need the newline of the client? For HTML, newlines don't matter. For most other cases, the protocol specifies which to use.
Matthew Flaschen
2009-06-13 01:00:47