Yes!
I've got this exact same problem

I think it has something to do with the format of a text file not recording
file break positions
But that doesn't really explain why notepad can display them perfect :(


"John Asendorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Why am I having such a hard time with this code?
>
>
> $doc = "doc.txt";
> $text = nl2br ( readfile ("D:\\foob\\bar\\foo\\$doc" ) );
> echo $text;
>
> OR
>
> $doc = "doc.txt
> $text = readfile ( "D:\\foob\\bar\\foo\\$doc" );
> $text = nl2br ( $text );
> echo $text;
>
>
> NEITHER of these give me any breaks...  I'm at my wits end here.  This
seems
> like a no brainer... I get the text file without any problem, but there
are
> no breaks in what is echoed.  Anyone?
>
> PHP 4.0.7-dev from php4win
>
> ---------------------
> John Asendorf - [EMAIL PROTECTED]
> Web Applications Developer
> http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> Licking County, Ohio, USA
> 740-349-3631
> Aliquando et insanire iucundum est
>



-- 
PHP Windows 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