Re: [PHP] \n and

2003-11-11 Thread Brian V Bonini
On Tue, 2003-11-11 at 14:51, Marek Kilimajer wrote: > Brian V Bonini wrote: > > So just change it > > > > $string = nl2br($content->page_content); > > $string = eregi_replace("", "", $string); > > > > Why not directly > str_replace(array("\r\n","\r","\n"), '', $content->page_content); You s

Re: [PHP] \n and

2003-11-11 Thread Marek Kilimajer
Brian V Bonini wrote: So just change it $string = nl2br($content->page_content); $string = eregi_replace("", "", $string); Why not directly str_replace(array("\r\n","\r","\n"), '', $content->page_content); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] \n and

2003-11-11 Thread Brian V Bonini
On Mon, 2003-11-10 at 20:21, Eugene Lee wrote: > On Mon, Nov 10, 2003 at 04:05:07PM -0800, Chris Shiflett wrote: > : > : --- Eugene Lee <[EMAIL PROTECTED]> wrote: > : > > : > Warning: nl2br() is not safe because it emits "" tags which do > : > not always work on all browsers (especially browsers n

Re: [PHP] \n and

2003-11-11 Thread Burhan Khalid
Chris Shiflett wrote: --- Eugene Lee <[EMAIL PROTECTED]> wrote: Warning: nl2br() is not safe because it emits "" tags which do not always work on all browsers (especially browsers not explicitly advertised to be XHTML-compliant). Can you name a single browser that cannot properly render a tag?

Re: [PHP] \n and

2003-11-10 Thread Robert Cummings
On Mon, 2003-11-10 at 21:44, Chris Shiflett wrote: > --- Robert Cummings <[EMAIL PROTECTED]> wrote: > > This appears to be off-topic, and so to drive the point home in > > your own self-righteous drivel: > > Robert, that is enough of this. Please take your pesonal differences > elsewhere. I was m

Re: [PHP] \n and

2003-11-10 Thread Chris Shiflett
--- Robert Cummings <[EMAIL PROTECTED]> wrote: > This appears to be off-topic, and so to drive the point home in > your own self-righteous drivel: Robert, that is enough of this. Please take your pesonal differences elsewhere. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbo

Re: [PHP] \n and

2003-11-10 Thread Robert Cummings
On Mon, 2003-11-10 at 20:30, John Nichel wrote: > > This could be why HBO hasn't been knocking on my door and offering me a > few million to do my stand-up routine. > This appears to be off-topic, and so to drive the point home in your own self-righteous drivel: John Nichel spewed one day:

Re: [PHP] \n and

2003-11-10 Thread Chris Shiflett
--- Eugene Lee <[EMAIL PROTECTED]> wrote: > > Can you name a single browser that cannot properly render a > > tag? > > There were rendering problems discovered with one popular web forum > software called vBulletin. That's not a browser. Chris = My Blog http://shiflett.org/ HTTP Deve

Re: [PHP] \n and

2003-11-10 Thread John Nichel
Chris W. Parker wrote: John Nichel on Monday, November 10, 2003 5:18 PM said: It was a joke. Maybe I'm just too old. *G* Or maybe you're just not funny. OOOH MOTED! :) Why does it feel like Friday??? p.s. i got your joke and no offense, just teasing. please

Re: [PHP] \n and

2003-11-10 Thread Eugene Lee
On Mon, Nov 10, 2003 at 04:05:07PM -0800, Chris Shiflett wrote: : : --- Eugene Lee <[EMAIL PROTECTED]> wrote: : > : > Warning: nl2br() is not safe because it emits "" tags which do : > not always work on all browsers (especially browsers not explicitly : > advertised to be XHTML-compliant). : : C

RE: [PHP] \n and

2003-11-10 Thread Chris W. Parker
John Nichel on Monday, November 10, 2003 5:18 PM said: > It was a joke. Maybe I'm just too old. *G* Or maybe you're just not funny. OOOH MOTED! :) Why does it feel like Friday??? p.s. i got your joke and no offense, just teasing. please feel free to make fun

Re: [PHP] \n and

2003-11-10 Thread John Nichel
Chris Shiflett wrote: --- John Nichel <[EMAIL PROTECTED]> wrote: The old Prodigy 'browser' from the early 90's? ;) Is that a guess or an answer? It was a joke. Maybe I'm just too old. *G* -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.ph

Re: [PHP] \n and

2003-11-10 Thread Chris Shiflett
--- John Nichel <[EMAIL PROTECTED]> wrote: > The old Prodigy 'browser' from the early 90's? ;) Is that a guess or an answer? I don't see it here: http://browsers.evolt.org/ That's the only place I know to find old browsers with which to test things like this. If you have any other information

Re: [PHP] \n and

2003-11-10 Thread Rolf Brusletto
Eugene Lee wrote: On Mon, Nov 10, 2003 at 06:57:54AM -0800, Chris Shiflett wrote: : : --- PHPLover <[EMAIL PROTECTED]> wrote: : > : > is \n same as : : This is not true. : : > I know that \n creates a break in source and not in display. : > Is it possible to make \n does the same function as

Re: [PHP] \n and

2003-11-10 Thread John Nichel
Chris Shiflett wrote: --- Eugene Lee <[EMAIL PROTECTED]> wrote: Warning: nl2br() is not safe because it emits "" tags which do not always work on all browsers (especially browsers not explicitly advertised to be XHTML-compliant). Can you name a single browser that cannot properly render a tag?

Re: [PHP] \n and

2003-11-10 Thread Chris Shiflett
--- Eugene Lee <[EMAIL PROTECTED]> wrote: > Warning: nl2br() is not safe because it emits "" tags which do > not always work on all browsers (especially browsers not explicitly > advertised to be XHTML-compliant). Can you name a single browser that cannot properly render a tag? Chris = My B

RE: [PHP] \n and

2003-11-10 Thread Chris W. Parker
Eugene Lee on Monday, November 10, 2003 3:58 PM said: > Warning: nl2br() is not safe because it emits "" tags which do > not always work on all browsers (especially browsers not explicitly > advertised to be XHTML-compliant). My original response (in my mind) was "W

Re: [PHP] \n and

2003-11-10 Thread Eugene Lee
On Mon, Nov 10, 2003 at 06:57:54AM -0800, Chris Shiflett wrote: : : --- PHPLover <[EMAIL PROTECTED]> wrote: : > : > is \n same as : : This is not true. : : > I know that \n creates a break in source and not in display. : > Is it possible to make \n does the same function as : : No, but you ca

Re: [PHP] \n and

2003-11-10 Thread Chris Shiflett
--- PHPLover <[EMAIL PROTECTED]> wrote: > is \n same as This is not true. > I know that \n creates a break in source and not in display. > Is it possible to make \n does the same function as No, but you can convert your newlines to the HTML equivalent: http://www.php.net/nl2br Hope that help

RE: [PHP] \n and

2003-11-10 Thread Chris Hayes
\n is the code to write a new line, between "double quotes". Actually it translates to a 0D or 0A code. If there is a 0D or 0A in a text or file (or normal text email) it works as a newline. If you look at the _source_ of your HTML file you will see it too. is the HTML code for new line. Brows

RE: [PHP] \n and

2003-11-10 Thread Jay Blanchard
[snip] is \n same as I found that \n does the same function as for some users, but not for me. I know that \n creates a break in source and not in display. Is it possible to make \n does the same function as [/snip] http://us3.php.net/nl2br -- PHP General Mailing List (http://www.php.net/) To

[PHP] \n and

2003-11-10 Thread PHPLover
is \n same as I found that \n does the same function as for some users, but not for me. I know that \n creates a break in source and not in display. Is it possible to make \n does the same function as Thanks & Regards, ___ PHPLover "Göd döësn't pläy dícë." - Älbërt