on 5/16/01 8:38 PM, Ray Iftikhar at [EMAIL PROTECTED] wrote:

> I have many text files stored on my server. I call them use using the
> "readfile" function. While that works great, it seems to over-write the hard
> returns. This has hurt the format and readability of my information.
> 
> ie.
> text file:
> This is
> a
> 
> test
> 
> output:
> This is a test
> 
> is there someway to get "readfile" to recognize returns in the file?
> Thanks in Advance..
> Ray

Sounds like you are displaying the text as HTML.  You can either surround
the data with <pre> tags, or use the nl2br() function to convert each new
line to a <br> tag.

-- 
/chris/


-- 
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]

Reply via email to