Re: [PHP] nl2br problem

2011-02-02 Thread Ashley Sheridan
On Tue, 2011-02-01 at 14:24 -0600, Donovan Brooke wrote: > Daniel Brown wrote: > [snip] > > Absolutely. Look into employing TinyMCE or CKEditor (or the older > > FCKEditor) so you don't have to do so much server-side processing. > > This will only apply to pages moving forward, mind you, not

Re: [PHP] nl2br problem

2011-02-01 Thread David Robley
David Hutto wrote: > If project names are indications of programmer's Freudian insights, > then what is the FCKEditor? Perhaps that questions should be asked of the lead developer's parents, who had the temerity to name him Frederico Caldeira Knabben. Cheers -- David Robley "I need an injecti

Re: [PHP] nl2br problem

2011-02-01 Thread Donovan Brooke
Daniel Brown wrote: [snip] Absolutely. Look into employing TinyMCE or CKEditor (or the older FCKEditor) so you don't have to do so much server-side processing. This will only apply to pages moving forward, mind you, not for displaying existing table data. You'll need to make the determinat

Re: [PHP] nl2br problem

2011-02-01 Thread David Hutto
If project names are indications of programmer's Freudian insights, then what is the FCKEditor? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] nl2br problem

2011-02-01 Thread Daniel Brown
On Tue, Feb 1, 2011 at 14:42, Donovan Brooke wrote: > Hello, > > I have CMS form that allows HTML for the body of a site. > > To keep the form somewhat WYSIWYG, I am using the > nl2br() function for displaying: > > nl2br($t_body) > > This works great for normal stuff.. but for pages with tables >

[PHP] nl2br problem

2011-02-01 Thread Donovan Brooke
Hello, I have CMS form that allows HTML for the body of a site. To keep the form somewhat WYSIWYG, I am using the nl2br() function for displaying: nl2br($t_body) This works great for normal stuff.. but for pages with tables etc.. it creates a lot of extra "'s" :-). I thought about doing an if

Re: [PHP] nl2br() question

2009-09-26 Thread Ashley Sheridan
On Sat, 2009-09-26 at 11:22 -0400, tedd wrote: > Hi gang: > > The manual says: > > http://www.php.net/nl2br > > That I could use the function like so (Example #2): > > $new = nl2br($string, false); > > But when I do, I get: > > Warning: Wrong parameter count for nl2br() in /home..

[PHP] nl2br() question

2009-09-26 Thread tedd
Hi gang: The manual says: http://www.php.net/nl2br That I could use the function like so (Example #2): $new = nl2br($string, false); But when I do, I get: Warning: Wrong parameter count for nl2br() in /home... What's up with that? I am using PHP Version 5.2.10 Cheers, tedd -- -

RE: [PHP] nl2br() question

2009-09-26 Thread HallMarc Websites
Tedd, > -Original Message- > From: tedd [mailto:t...@sperling.com] > Sent: Saturday, September 26, 2009 11:23 AM > To: PHP General List > Subject: [PHP] nl2br() question > > Hi gang: > > The manual says: > > http://www.php.net/nl2br > >

Re: [PHP] nl2br() question

2009-09-26 Thread Daniel Brown
On Sat, Sep 26, 2009 at 11:22, tedd wrote: > Hi gang: > > The manual says: > >   http://www.php.net/nl2br > > That I could use the function like so (Example #2): > >   $new = nl2br($string, false); > > But when I do, I get: > >   Warning: Wrong parameter count for nl2br() in /home... > > What's up

Re: [PHP] nl2br() question

2009-09-26 Thread tedd
At 11:27 AM -0400 9/26/09, Daniel Brown wrote: On Sat, Sep 26, 2009 at 11:22, tedd wrote: I am using PHP Version 5.2.10 whereas the `is_xhtml` parameter was added in 5.3.0. And 5.3.0 > 5.2.10. ;-P -- Ahhh, I didn't look far enough down the page. Thanks -- I figured out a so

Re: [PHP] nl2br misprint

2005-01-21 Thread Bret Hughes
On Fri, 2005-01-21 at 17:52, Jason Wong wrote: > On Saturday 22 January 2005 07:36, Scott DeMers wrote: > > From the function page on php.net ( > > http://us4.php.net/manual/en/function.nl2br.php ): > > > > "Starting with PHP 4.0.5, nl2br() is now XHTML compliant. All versions > > before 4.0.5 will

RE: [PHP] nl2br misprint

2005-01-21 Thread Scott DeMers
Please disregard - I read it wrong. -Original Message- From: Scott DeMers [mailto:[EMAIL PROTECTED] Sent: Friday, January 21, 2005 6:37 PM To: php-general@lists.php.net Subject: [PHP] nl2br misprint >From the function page on php.net ( http://us4.php.net/manual/en/function.nl2br.

Re: [PHP] nl2br misprint

2005-01-21 Thread Jason Wong
On Saturday 22 January 2005 07:36, Scott DeMers wrote: > From the function page on php.net ( > http://us4.php.net/manual/en/function.nl2br.php ): > > "Starting with PHP 4.0.5, nl2br() is now XHTML compliant. All versions > before 4.0.5 will return string with '' inserted before newlines > instead o

[PHP] nl2br misprint

2005-01-21 Thread Scott DeMers
>From the function page on php.net ( http://us4.php.net/manual/en/function.nl2br.php ): "Starting with PHP 4.0.5, nl2br() is now XHTML compliant. All versions before 4.0.5 will return string with '' inserted before newlines instead of ''." Is this a misprint, ot does the revised function actually

Re: [PHP] nl2br problem

2004-05-28 Thread Chris Shiflett
> --- Gerben <[EMAIL PROTECTED]> wrote: > > does anyone know how to create a true nl2br function in stead of a > > nl2br-and-nl function. > > $foo = str_replace('\n', '', $foo); Make that "\n" to interpret the newline correctly. Sorry about that. Chris = Chris Shiflett - http://shiflett.org

Re: [PHP] nl2br problem

2004-05-28 Thread Chris Shiflett
--- Gerben <[EMAIL PROTECTED]> wrote: > does anyone know how to create a true nl2br function in stead of a > nl2br-and-nl function. $foo = str_replace('\n', '', $foo); Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sam

[PHP] nl2br problem

2004-05-28 Thread Gerben
If have some problems with the nl2br function. It f*cks up my layout. does anyone know how to create a true nl2br function in stead of a nl2br-and-nl function. i.e. I just want everything on one line. I used: str_replace("\n", "", nl2br($text)); but I don't like it that much and I don't know if nl

Re: [PHP] nl2br and

2003-06-27 Thread Lars Torben Wilson
On Fri, 2003-06-27 at 14:07, Raymond C. Rodgers wrote: > I'm sure that this has probably been discussed before, but I couldn't > seem to find any direct references to such a discussion. The line break > tags that nl2br() produces have the forward slash embedded in them, > which is not in the HTML 4

[PHP] nl2br and

2003-06-27 Thread Raymond C. Rodgers
I'm sure that this has probably been discussed before, but I couldn't seem to find any direct references to such a discussion. The line break tags that nl2br() produces have the forward slash embedded in them, which is not in the HTML 4.x standard. While this isn't a big deal really, the fact of th

Re: [PHP] nl2br

2003-06-11 Thread Miles Thompson
Leif, The users I'm talking about here are two internal people, not the subscribers. Budget was tight, and rather than wrangling text from both Netscape and IE, we just made a decision. I don't remember the quirk exactly, I think it was the way wrapping was handled in the textarea in NN. Subsc

RE: [PHP] nl2br

2003-06-11 Thread chris sherwood
and what consequences would that be.. its not law -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: June 11, 2003 3:27 PM To: chris sherwood Cc: [EMAIL PROTECTED] Subject: Re: [PHP] nl2br Standards-compliant HTML can be written just as cheaply and easily as IE

Re: [PHP] nl2br

2003-06-11 Thread Leif K-Brooks
Standards-compliant HTML can be written just as cheaply and easily as IE-compliant HTML. If I chose to make my restraunt inaccessible to wheel chairs, I would have to face the consquences. chris sherwood wrote: That's true but how would you feel if you made some choices and then had people cri

RE: [PHP] nl2br

2003-06-11 Thread chris sherwood
EMAIL PROTECTED] Subject: Re: [PHP] nl2br And it's my choice to tell him to go to hell. chris sherwood wrote: >if they choose to limit to ie thats their choice ... > -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosec

Re: [PHP] nl2br

2003-06-11 Thread Leif K-Brooks
And it's my choice to tell him to go to hell. chris sherwood wrote: if they choose to limit to ie thats their choice ... -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Maili

RE: [PHP] nl2br

2003-06-11 Thread chris sherwood
if they choose to limit to ie thats their choice ... -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: June 11, 2003 2:51 PM To: Miles Thompson Cc: [EMAIL PROTECTED] Php. Net Subject: Re: [PHP] nl2br That's plain wrong. This is the /world wide/ web, not t

Re: [PHP] nl2br

2003-06-11 Thread Leif K-Brooks
That's plain wrong. This is the /world wide/ web, not the IE users' club. Either stop that BS or keep off of the internet! Miles Thompson wrote: We limited our users to using IE -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be pro

Re: [PHP] nl2br

2003-06-11 Thread Miles Thompson
At 04:15 PM 6/11/2003 -0400, Edward Peloke wrote: Ok, I am trying to create a very basic page where we can all easily work on a document. I just have a huge textarea that inserts the text into a longtext field in the mysql db. I use nl2br to keep the formatting. Of course, when the document is v

Re: [PHP] nl2br() Function for Paragraphs?

2003-06-11 Thread Nick Wilson
* and then John S. Huggins declared > >-Has anyone written a function that does what nl2br() does but wraps text > >-in a 's instead? I'm a bit of a clean html type and nl2br() just > >-leaves me wishing there was a better way... > > Several examples appear in the user comments section of: >

Re: [PHP] nl2br() Function for Paragraphs?

2003-06-11 Thread John S. Huggins
On Wed, 11 Jun 2003, Nick Wilson wrote: >-Hello everyone, >- >-Has anyone written a function that does what nl2br() does but wraps text >-in a 's instead? I'm a bit of a clean html type and nl2br() just >-leaves me wishing there was a better way... Several examples appear in the user comments se

[PHP] nl2br() Function for Paragraphs?

2003-06-11 Thread Nick Wilson
Hello everyone, Has anyone written a function that does what nl2br() does but wraps text in a 's instead? I'm a bit of a clean html type and nl2br() just leaves me wishing there was a better way... I'm afraid my regex is dreadfull so I just hoped someone might have already done it and be willing

RE: [PHP] nl2br

2003-06-11 Thread Edward Peloke
thanks John, I will give that a shot. -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 4:18 PM To: Edward Peloke; [EMAIL PROTECTED] Php. Net Subject: Re: [PHP] nl2br > I am trying to create a very basic page where we can all eas

Re: [PHP] nl2br

2003-06-11 Thread CPT John W. Holmes
> I am trying to create a very basic page where we can all easily work on a > document. I just have a huge textarea that inserts the text into a longtext > field in the mysql db. I use nl2br to keep the formatting. Of course, when > the document is viewed in the textarea, all of the are there.

[PHP] nl2br

2003-06-11 Thread Edward Peloke
Ok, I am trying to create a very basic page where we can all easily work on a document. I just have a huge textarea that inserts the text into a longtext field in the mysql db. I use nl2br to keep the formatting. Of course, when the document is viewed in the textarea, all of the are there. TH

Re: [PHP] nl2br too?

2003-01-16 Thread gamin
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > --- Cesar Aracena <[EMAIL PROTECTED]> wrote: > > When I make a form in a web site for a visitor to > > send me some comments, I use nl2br() to put things > > like line breaks and see what the visit

Re: [PHP] nl2br too?

2003-01-16 Thread Chris Shiflett
--- Cesar Aracena <[EMAIL PROTECTED]> wrote: > When I make a form in a web site for a visitor to > send me some comments, I use nl2br() to put things > like line breaks and see what the visitor wants me > to see. > > But what happens if I have a web form to input some > text into a TEXT cell in My

[PHP] nl2br too?

2003-01-16 Thread Cesar Aracena
Hi all, When I make a form in a web site for a visitor to send me some comments, I use nl2br() to put things like line breaks and see what the visitor wants me to see. But what happens if I have a web form to input some text into a TEXT cell in MySQL and want to retrieve it like I wrote it? Shoul

Re: [PHP] nl2br ( ) and forms

2002-12-02 Thread Leif K-Brooks
Ryan Smaglik wrote: When I call data from a form, How do I integrate nl2br to it so that it displays with linebreaks? Example code: Thanks in advance, Ryan -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to t

[PHP] nl2br ( ) and forms

2002-12-02 Thread Ryan Smaglik
When I call data from a form, How do I integrate nl2br to it so that it displays with linebreaks? Example code: Thanks in advance, Ryan

RE: [PHP] nl2br returns ? normality or a bug?

2002-04-08 Thread Brinkman, Theodore
- Theo -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 06, 2002 1:57 AM To: Justin French Cc: php Subject: Re: [PHP] nl2br returns ? normality or a bug? On Sat, 6 Apr 2002, Justin French wrote: > on 06/04/02 11:05 AM, Maxim Maletsky ([EMAIL

RE: [PHP] nl2br returns ? normality or a bug?

2002-04-06 Thread Maxim Maletsky
ginner.com > -Original Message- > From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]] On Behalf Of Lars Torben Wilson > Sent: Saturday, April 06, 2002 10:30 PM > To: Justin French > Cc: php > Subject: Re: [PHP] nl2br returns ? normality or a bug? > > On Fri, 2002-04-05 at 18:34, Ju

Re: [PHP] nl2br returns ? normality or a bug?

2002-04-06 Thread Lars Torben Wilson
On Fri, 2002-04-05 at 18:34, Justin French wrote: > on 06/04/02 11:05 AM, Maxim Maletsky ([EMAIL PROTECTED]) wrote: > > > You're deadly wrong, Justin. Years of coding and I have never seen this > > behavior of nl2br(). Perhaps I missed its new behavior's introduction > > (guilty as charged if so)

Re: [PHP] nl2br returns ? normality or a bug?

2002-04-06 Thread Justin French
>> links 0.96 >> lynx 2.8.3 >> Opera 5.0.498 (Mac) >> IE 5.1.3 (Mac) >> Mozilla 0.9.9 (Mac) >> Netscape 6.1 (Mac) > Add Konqueror on Linux to this list. > > Also note that links 0.84 (the latest version on Debian Stable) does _not_ > parse XHTML tags correctly. Okay, I've tested it on everything

Re: [PHP] nl2br returns ? normality or a bug?

2002-04-06 Thread James Arthur
On Saturday 06 Apr 2002 07:56, Miguel Cruz wrote: > On Sat, 6 Apr 2002, Justin French wrote: > > on 06/04/02 11:05 AM, Maxim Maletsky ([EMAIL PROTECTED]) wrote: > >> It DOES NOT work fine in every browser. I'd love to give you a prov, but > >> because I am lazy I will just tell you this formula:

Re: [PHP] nl2br returns ? normality or a bug?

2002-04-05 Thread Miguel Cruz
On Sat, 6 Apr 2002, Justin French wrote: > on 06/04/02 11:05 AM, Maxim Maletsky ([EMAIL PROTECTED]) wrote: >> It DOES NOT work fine in every browser. I'd love to give you a prov, but >> because I am lazy I will just tell you this formula: > > Again. I was only stating MY experience. "Every brow

RE: [PHP] nl2br returns ? normality or a bug?

2002-04-05 Thread Maxim Maletsky
3 AM > To: Maxim Maletsky > Cc: 'James Cox'; 'Andrew Brampton'; [EMAIL PROTECTED] > Subject: RE: [PHP] nl2br returns ? normality or a bug? > > On Sat, 6 Apr 2002, Maxim Maletsky wrote: > > But again (I like insisting on such things), > > Why do I

Re: [PHP] nl2br returns ? normality or a bug?

2002-04-05 Thread Justin French
on 06/04/02 11:05 AM, Maxim Maletsky ([EMAIL PROTECTED]) wrote: > You're deadly wrong, Justin. Years of coding and I have never seen this > behavior of nl2br(). Perhaps I missed its new behavior's introduction > (guilty as charged if so) but I only remember it returning me not > . I have several

RE: [PHP] nl2br returns ? normality or a bug?

2002-04-05 Thread Rodolfo Gonzalez
On Sat, 6 Apr 2002, Maxim Maletsky wrote: > But again (I like insisting on such things), > Why do I have it now and didn't have it before? Why did it change > anyway? I haven't seen it on any other my server and I use it quite a > lot. Directly from the manual: Note: Starting with PHP 4.0.5, nl

RE: [PHP] nl2br returns ? normality or a bug?

2002-04-05 Thread Maxim Maletsky
> nl2br() has returned for as long as I can remember. You're deadly wrong, Justin. Years of coding and I have never seen this behavior of nl2br(). Perhaps I missed its new behavior's introduction (guilty as charged if so) but I only remember it returning me not . I have several regex depending

RE: [PHP] nl2br returns ? normality or a bug?

2002-04-05 Thread Maxim Maletsky
(Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com > -Original Message- > From: James Cox [mailto:[EMAIL PROTECTED]] > Sent: Saturday, April 06, 2002 2:34 AM > To: Maxim Maletsky; 'Andrew Brampton'; [EMAIL PROTECTED] > Subject: RE: [PHP] nl2br returns

RE: [PHP] nl2br returns ? normality or a bug?

2002-04-05 Thread James Cox
- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 06, 2002 1:31 AM To: 'Andrew Brampton'; [EMAIL PROTECTED] Subject: RE: [PHP] nl2br returns ? normality or a bug? Not same, Andrew, It had made my pages VERY VERY UGLY! I know that it can be parsed well, but shoul

RE: [PHP] nl2br returns ? normality or a bug?

2002-04-05 Thread Maxim Maletsky
, 2002 2:21 AM > To: Maxim Maletsky; [EMAIL PROTECTED] > Subject: Re: [PHP] nl2br returns ? normality or a bug? > > is that XML style newline or something... > > Don't worry about it, it parsed the same as > > Andrew > - Original Message - > Fr

Re: [PHP] nl2br returns ? normality or a bug?

2002-04-05 Thread Miguel Cruz
On Sat, 6 Apr 2002, Maxim Maletsky wrote: > I've never seen that nl2rb would return me instead of the > traditional . But it did. > > Is that normal or it that a bug? In Yon Coming Days of HTML ye shall find that such notation is The Way And The Law. Might as well get used to it... miguel

Re: [PHP] nl2br returns ? normality or a bug?

2002-04-05 Thread Andrew Brampton
is that XML style newline or something... Don't worry about it, it parsed the same as Andrew - Original Message - From: "Maxim Maletsky" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 06, 2002 1:13 AM Subject: [PHP] nl2br returns ? norm

[PHP] nl2br returns ? normality or a bug?

2002-04-05 Thread Maxim Maletsky
I've never seen that nl2rb would return me instead of the traditional . But it did. Is that normal or it that a bug? Here's some test code: returns me such HTML: -- Hello this is the silliest test I can ever invent on machine: [Apache-AdvancedExtranet

RE: [PHP] nl2br

2001-04-03 Thread James Moore
> On Tuesday 03 April 2001 01:42, you wrote: > > Hello > > > > In PHP there is an instruction : nl2br . > > Does anybody know if there is something similar in Perl??? > > Well, you'd think Perl experts would know this a bit better that PHP > experts, hm? $string =~ s/\n/\n/g -James -- James

Re: [PHP] nl2br

2001-04-03 Thread Christian Reiniger
On Tuesday 03 April 2001 01:42, you wrote: > Hello > > In PHP there is an instruction : nl2br . > Does anybody know if there is something similar in Perl??? Well, you'd think Perl experts would know this a bit better that PHP experts, hm? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk

RE: [PHP] nl2br

2001-04-02 Thread Boget, Chris
> In PHP there is an instruction : nl2br . > Does anybody know if there is something similar in Perl??? I think this syntax is correct... it's been a while... $string =~ /\\n/\/g or something along those lines... :p Chris