Re: [PHP] /n not working

2003-07-26 Thread DvDmanDT
I must suggest to just add like header("Content-Type: text/plain"); // Don't use HTML To the top of examples like that... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] "Curt Zirzow" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > * Thus wrote John W. Holmes (

Re: [PHP] /n not working

2003-07-26 Thread Curt Zirzow
* Thus wrote John W. Holmes ([EMAIL PROTECTED]): > Thomas Hochstetter wrote: > > > >$text = "The quick brown fox jumped over the lazy dog."; > >$newtext = wordwrap($text, 20); > > > >echo "$newtext\n"; > > [...] > > HTML does not render newlines. You need to use . View the source > of this code in

Re: [PHP] /n not working

2003-07-26 Thread John W. Holmes
Thomas Hochstetter wrote: Hi there. I got a question from someone why the following (from the manual) will not bring the desired output: /* if I open the following txt file and in explorer*/ $text = "The quick brown fox jumped over the lazy dog."; $newtext = wordwrap($text, 20); echo "$newtext

Re: [PHP] \n not working

2001-09-16 Thread Andrew Brampton
Browsers don't parse \n as a new line, try using which will make a new line Andrew - Original Message - From: "alpherjo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 16, 2001 9:51 PM Subject: [PHP] \n not working > I am just learning PHP. I have it installed on m