Re: problem with stripslashes(nl2br($body)) - help please!
| From: | Brett Taylor | Date: | Fri, 13 Jul 2001 05:39:55 +0000 |
| Subject: | Re: problem with stripslashes(nl2br($body)) - help please! | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-8302@lists.php.net to get a copy of this message | ||
for anyone who cares, someone else told me:
$body =
str_replace("\r","",str_replace("\n","",nl2br($body)));
$line =
stripslashes($heading."|".$userno."|".time()."|".$body)."\n";
fwrite($output,$line);
cheers to GuruBob for helping me with this one :)
"Brett Taylor" <glutnix@N0SPAMyahoo.com.au> wrote in message
news:20010712232820.90019.qmail@pb1.pair.com...
> oops, forgot this line
>
> > // problem area begins here
> > $body = nl2br($body);
> > $line = $heading.'|'.$userno.'|'.time().'|'.$body;
> $line = stripslashes($line);
> > $line = $line."\n" ;
> > // end problem area
>
>
>