NYCPHP Meetup

NYPHP.org

[nycphp-talk] database handles

Mitch Pirtle mitch.pirtle at gmail.com
Thu Sep 30 23:00:46 EDT 2004


George Schlossnagle's "Upgrading to PHP 5" (O'Reilly) shows just how
to handle this approach in Chapter 2.  Well done.


On Thu, 30 Sep 2004 22:57:02 -0400, Daniel Convissor
<danielc at analysisandsolutions.com> wrote:
> The first way is the way to go.  Having multiple connection attempts is
> inefficient.  If you want flexibility of potentially not having the
> prior objects loaded, have the subsequent objects do a check if DB is
> instantiated or not.  If not, then instantiate it.



More information about the talk mailing list