Re: DB: when do you need to use $db->disconnect() ?

From: Date: Wed, 07 Sep 2005 20:07:29 +0000
Subject: Re: DB: when do you need to use $db->disconnect() ?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20847@lists.php.net to get a copy of this message
On Fri, 2005-09-02 at 09:18 -0700, Justin Patrin wrote: > Like all DB connections in PHP any connections you make with DB will > be cleaned up when the script exits. It' syour call whether you want > to free up the rsources sooner rather than later. > that is true if the database is not configured to use "persistent" connections. IMHO it is best to *always* call disconnect() at the end of the script (and only once!) just to be sure. regards, J

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.pear.general (#20847) next »