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 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 needs.
>
> Todd
>
> --
> Todd Cary
> Ariste Software
> [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]