RE: [PHP-WIN] Mutiline read as Sigle Line!

From: Date: Tue, 21 Aug 2001 09:07:42 +0000
Subject: RE: [PHP-WIN] Mutiline read as Sigle Line!
References: 1  Groups: php.general php.windows 
Request: Send a blank email to php-general+get-63656@lists.php.net to get a copy of this message
Hi Jack, ... look at the generated html-code, you will read: This is a test! and this is not a joke! But since html doesn't display \r\n you have to use the php-function nl2br. Greetinx, Mike Michael Rudel - Web-Development, Systemadministration - Besuchen Sie uns am 20. und 21. August 2001 auf der online-marketing-düsseldorf in Halle 1 Stand E 16 _______________________________________________________________ Suchtreffer AG Bleicherstraße 20 D-78467 Konstanz Germany fon: +49-(0)7531-89207-17 fax: +49-(0)7531-89207-13 e-mail: mailto:mru@suchtreffer.de internet: http://www.suchtreffer.de _______________________________________________________________ > -----Original Message----- > From: Jack [mailto:jack@nedcor.com] > Sent: Tuesday, August 21, 2001 10:58 AM > To: php-general@lists.php.net; php-windows@lists.php.net > Subject: [PHP-WIN] Mutiline read as Sigle Line! > > > Dear all > I had a page which let user to input a long description into > it! and had > wrote a script which will "fputs" the user input content to > content.txt! > When i open the content.txt, it is shown below: > > This is a test! > and this is not a joke! > > which is fine , because it display as how the user type into > the input text > box. > I got another php page which i use "fileread" to grap the content from > content.txt to display it to the browser!! The problem comes, > which it read > all the content from content.txt as one line!! It show like below: > > This is a test!and this is not a joke! > > I want the browser could display exactly the same as the user > input! even > the lines and format! > > Could anyone pls help me with this? > > Thx > Jack > jack@nedcor.com > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.general (#63656) next »