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

From: Date: Fri, 02 Sep 2005 16:18:47 +0000
Subject: Re: DB: when do you need to use $db->disconnect() ?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20756@lists.php.net to get a copy of this message
On 9/2/05, l Burnerheimerton <lburnerheimerton@yahoo.com> wrote: > I've seen disconnect() used in some code and not in > others. I use autoprepare/autoexecute for all > insert/update and $db->query() for select queries. > > I've searched but found nothing yet definitively > indicates when to use disconnect() and when it's not > needed. > > Thanks for any help/links. > 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. -- Justin Patrin

« previous php.pear.general (#20756) next »