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
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
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
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
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
>
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
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..
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
--
-
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
>
>
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
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
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
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.
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
>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
> --- 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
--- 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
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
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
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
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
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
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
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
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
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
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
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
* 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:
>
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
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
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
> 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.
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
"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
--- 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
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
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
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
- 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
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
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)
>> 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
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:
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
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
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
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
> 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
(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
-
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
, 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
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
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
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
> 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
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
> 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
58 matches
Mail list logo