Re: New lines

From: Date: Tue, 03 Feb 2004 20:56:45 +0000
Subject: Re: New lines
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-176728@lists.php.net to get a copy of this message
John W. Holmes wrote:
From: "John Nichel" <jnichel@by-tor.com>
If all the OP wants to do is echo out the file, then why not just use the file() function. Then each line is loaded up into an array element, and you've saved yourself a bit of cpu. And your example above doesn't address the OP's claim that it is not handling new lines.
file_get_contents() would be the fastest. And once the OP learns the difference between TEXT and HTML, he'll realize he just needs to use the nl2br() function. :) ---John Holmes...
Yeah, Jason suggested that (nl2br), and was told by the OP that he was wrong, so the realization may take more time than expected. ;) -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#176728) next »