Re: Weirdest error I've ever had....
| From: | heinisch at creaction dot de | Date: | Wed, 09 May 2001 06:26:01 +0000 |
| Subject: | Re: Weirdest error I've ever had.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52035@lists.php.net to get a copy of this message | ||
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