Just use \n. Both OS's understand this to be a linefeed and will behave
accordingly.
With the exception of a class that performs POP3 queries, I've never had
to use \r\n in my code.
Regards,
Toby Butzon
Todd Cary wrote:
>
> When I write to a file with PHP, I get double line spacing when read
When I write to a file with PHP, I get double line spacing when read on
a PC. Is there a way to handle this so that a text file can be created
by PHP and be read correctly by Linux or a WIN based computer?
In my PHP code, I have been using \r\n to duplicate the 0Dh 0Ah that a
WIN based computer
2 matches
Mail list logo