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

[PHP] /n not working

2003-07-26 Thread Thomas Hochstetter
Hi there. I got a question from someone why the following (from the manual) will not bring the desired output: Is this a php.ini setting? Thomas -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Jetzt ein- oder umsteigen und USB-Speicheruhr als Prämie sichern! -- PHP General M

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 learni

[PHP] \n not working

2001-09-16 Thread alpherjo
I am just learning PHP. I have it installed on my Win 2000 IIS to practice, and after I save PHP files in my wwwroot folder, I go ahead and access my practice pages through IE via my full (universal) server address. However, the \n code (to start a new line) never works. Any ideas? Thanks! --