[nycphp-talk] database handles
Matthew Terenzio
webmaster at localnotion.com
Fri Oct 1 18:18:05 EDT 2004
yes that database class from Adam;s book was what I had in mind.
I even took it another step and used that static property technique
within all classes which might use the database class.
So in effect, the class only requires() the database class and
instantiates it if hasn't already. If instantiated, the database class
only connects if it hasn't already.
I'm liking PHP 5 so much I wrote a Haiku.
Cascading Database
Requires one connection
Slash Dot here we come.
Just wish more web hosts upgraded to 5 and offered Postgresql. Guess
it's just a matter of time.
Matt
More information about the talk
mailing list