Re: /n for PC & Unix

From: Date: Sun, 18 Feb 2001 17:16:11 +0000
Subject: Re: /n for PC & Unix
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-40449@lists.php.net to get a copy of this message
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 > todd@aristesoftware.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#40449) next »