RE: [PEAR-DEV] do pear packages create their own seperate DB connections?

From: Date: Tue, 22 Apr 2003 14:31:00 +0000
Subject: RE: [PEAR-DEV] do pear packages create their own seperate DB connections?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-15332@lists.php.net to get a copy of this message
> From: Jeroen Houben [mailto:jeroen@terena.nl] > Sent: Tuesday, April 22, 2003 4:29 PM > To: mj@php.net > Cc: jeroen@terena.nl; pear-dev@lists.php.net > Subject: Re: [PEAR-DEV] do pear packages create their own seperate DB > connections? > > > On Tue Apr 22, 2003 at 03:0905PM +0200, Jeroen Houben wrote: > >> A lot of packages use DB (and in the future hopefully MDB) and they > >> all need a DSN as a constructor parameter. IMO it would be nice if > >> packages like Auth and Tree etc etc would also accept a reference to > >> an existing connection. > > > > At least PEAR::Auth is already capable of that: > > > > $dbh = DB::connect("..."); > > $a = new Auth("DB", &$dbh); > > > > > Excellent! Now all I need is an MDB container for Auth .. ;-) there is one in CVS. Regards, Lukas

« previous php.pear.dev (#15332) next »