Re: Weirdest error I've ever had....
| From: | Chris Anderson | Date: | Mon, 07 May 2001 06:38:57 +0000 |
| Subject: | Re: Weirdest error I've ever had.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52197@lists.php.net to get a copy of this message | ||
too simple :)
doesnt fix it anyway, it was a xhtml compliancy problem
Chris Anderson aka "Null"
--------------------------------------------
PHP Developer / Nulltech
PHP-GTK Documentation Writer / gtk.php.net
STA-DoD, TO and D-Day Administrator / dod.stronger.org,
to.stronger.org, dday.stronger.org
Zeroping Staff Member / www.zeroping.com
Volition Programmer / www.Volition-net.com
----- Original Message -----
From: <heinisch@creaction.de>
To: <php-general@lists.php.net>
Sent: Wednesday, May 09, 2001 2:26 AM
Subject: Re: [PHP] Weirdest error I've ever had....
At 06.05.01 12:00, you wrote:
>Alright I have a simple file writing script. Nothing special. in one
>part I use this code:
> $data[$x] = str_replace("<br>","\n", $data[$x]);
>to replace break tags with page breaks. Problem is that for some
>reason it is adding wierd <br /> tags to the file. It only does this
>on that server. What is that?
why don´t you use $data[$x]=nl2br($data[$x]);
smart n easy
HTH Oliver
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail:
php-list-admin@lists.php.net