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] Detecting Multi-Scope Variables

2011-02-01 Thread David Harkness
I think you can use reflection [1] to block the hooks from using & in their parameter lists. This way the clients must use & to pass a reference. This is definitely possible for function/method callbacks [2], but I'm not sure about 5.3 closures [3]. David [1] http://www.php.net/manual/en/reflecti

Re: [PHP] Detecting Multi-Scope Variables

2011-02-01 Thread Brad Lorge
Hmm, would this then be a question for internals? On Wed, Feb 2, 2011 at 9:59 AM, Ashley Sheridan wrote: > "Brad Lorge" wrote: > > >Perhaps my question was not as succinct as it could have been. > > > >Basically, can you think of a means through which to detect whether or > >not a > >variable i

Re: [PHP] Detecting Multi-Scope Variables

2011-02-01 Thread Ashley Sheridan
"Brad Lorge" wrote: >Perhaps my question was not as succinct as it could have been. > >Basically, can you think of a means through which to detect whether or >not a >variable is currently present in multiple scopes. > >IE: > > >$bob = "fish"; > >echo is_multiscoped($bob); //False > >function some

Re: [PHP] Detecting Multi-Scope Variables

2011-02-01 Thread Brad Lorge
Perhaps my question was not as succinct as it could have been. Basically, can you think of a means through which to detect whether or not a variable is currently present in multiple scopes. IE: On Tue, Feb 1, 2011 at 7:12 PM, Tommy Pham wrote: > > -Original Message- > > From: Brad Lo

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] Pulling from Multiple Databases

2011-02-01 Thread Steve Staples
-- purposely top posting as well -- just think, here in ontario, we have UBB... where Bell is proposing a 25 cap on usage... you sir, are killing my usage! :) On Tue, 2011-02-01 at 12:18 -0700, Alexis wrote: > Bloody Hell!! > > How many lines is the footer in your email response!!! > > I ma

Re: [PHP] Pulling from Multiple Databases

2011-02-01 Thread David Hutto
> Do you even NEED a footer with nothing but inane comments in it? > It's probably an overcompensation for a small penis. > Alexis > On 01/02/11 11:54, David Hutto wrote: >> I'd pass the db's to a threaded function that processes each db's info >> in an algorithmic order. >> >> -- The lawyer in m

Re: [PHP] Pulling from Multiple Databases

2011-02-01 Thread Alexis
Bloody Hell!! How many lines is the footer in your email response!!! I make it almost ten times longer than the reply itselftalk about abominable netiquette, and I have purposely put this response at the top as after all footers do go at the bottom of an email :) Do you even NEED a foote

Re: [PHP] Pulling from Multiple Databases

2011-02-01 Thread David Hutto
I'd pass the db's to a threaded function that processes each db's info in an algorithmic order. -- The lawyer in me says argue...even if you're wrong. The scientist in me... says shut up, listen, and then argue. But the lawyer won on appeal, so now I have to argue due to a court order. Furthermo

Re: [PHP] Pulling from Multiple Databases

2011-02-01 Thread Jon Hood
Bah, forgot to reply-all On Tue, Feb 1, 2011 at 11:59 AM, Jon Hood wrote: > Using pcntl_fork mostly accomplished what I wanted (I had to go back and > create the actual connection in each of the forked processes, otherwise, the > first process that ended would destroy the connection to the main

Re: [PHP] Pulling from Multiple Databases

2011-02-01 Thread Richard Quadling
On 1 February 2011 16:39, Jon Hood wrote: > (comments in-line) > > On Tue, Feb 1, 2011 at 10:34 AM, Richard Quadling > wrote: >> >> I use a data warehouse (a semi denormalized db) to hold data from >> around 200 different data sources (DB, Excel spreadsheets, Web, etc.) >> >> I use multiple scrip

Re: [PHP] Pulling from Multiple Databases

2011-02-01 Thread Adam Richardson
On Tue, Feb 1, 2011 at 10:59 AM, Jon Hood wrote: > I have a website that is currently pulling from more than 30 databases, > combining the data, and displaying it to the user. As more and more > databases are added, the script continues to get slower and slower, and > I've > realized that I need

Re: [PHP] Pulling from Multiple Databases

2011-02-01 Thread Jon Hood
(comments in-line) On Tue, Feb 1, 2011 at 10:34 AM, Richard Quadling wrote: > I use a data warehouse (a semi denormalized db) to hold data from > around 200 different data sources (DB, Excel spreadsheets, Web, etc.) > > I use multiple scripts to update the DB, each one tuned to a > particular fre

Re: [PHP] Pulling from Multiple Databases

2011-02-01 Thread Richard Quadling
On 1 February 2011 15:59, Jon Hood wrote: > I have a website that is currently pulling from more than 30 databases, > combining the data, and displaying it to the user. As more and more > databases are added, the script continues to get slower and slower, and I've > realized that I need to either

RE: [PHP] Pulling from Multiple Databases

2011-02-01 Thread Jay Blanchard
[snip] I have a website that is currently pulling from more than 30 databases, combining the data, and displaying it to the user. As more and more databases are added, the script continues to get slower and slower, and I've realized that I need to either find a way to pull these data in parallel. S

[PHP] Pulling from Multiple Databases

2011-02-01 Thread Jon Hood
I have a website that is currently pulling from more than 30 databases, combining the data, and displaying it to the user. As more and more databases are added, the script continues to get slower and slower, and I've realized that I need to either find a way to pull these data in parallel. So - wha

RE: [PHP] Detecting Multi-Scope Variables

2011-02-01 Thread Tommy Pham
> -Original Message- > From: Brad Lorge [mailto:b...@lorge.com.au] > Sent: Monday, January 31, 2011 9:53 PM > To: php-general@lists.php.net > Subject: [PHP] Detecting Multi-Scope Variables > > Hello All, > > I am new to the list so please be gentle :) > > I am working on a PHP framework