|
|
 |
Re: FN-FORUM: Small PHP Problem
date posted 28th January 2007 17:24
Thanks David....
Totally Forgot that function... maybe i need to brush up on my basic PHP...
:-)
----- Original Message -----
From: [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Sunday, January 28, 2007 6:11 PM
Subject: RE: FN-FORUM: Small PHP Problem
>
>
> Hi Peter
>
> Use nl2br() !
>
> David.
>
> -----Original Message-----
> From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Peter
> Scoins
> Sent: 28 January 2007 18:06
> To: FN-FORUM / [EMAIL REMOVED]
> Subject: FN-FORUM: Small PHP Problem
>
>
> have a small problem with the following,
>
> (to replace new lines '\n' with 's)
>
>
> $message=ereg_replace( "\n", "", $message );
>
>
> The message is saved into in text file and is producing the <br>
> (basically the html character codes for < and >)
>
> any ideas to fix it so it saves 's in the text file rather then
> <br>
>
> Thanks
>
> Peter Scoins
>
> [EMAIL REMOVED]
>
>
>
> --
> Freelancers, contractors earn more with Prosperity4 Call 0870 870 4414 or
> visit www.prosperity4.com and benefit from Inland Revenue approved
> expenses
> today.
>
> To advertise here: http://www.freelancers.net/advertising.html
>
>
> --
> Freelancers, contractors earn more with Prosperity4
> Call 0870 870 4414 or visit www.prosperity4.com
> and benefit from Inland Revenue approved expenses today.
>
> To advertise here: http://www.freelancers.net/advertising.html
>
> |
 |
|