Re: db_dataobject : connection handling ?
| From: | Justin Patrin | Date: | Mon, 29 Nov 2004 17:11:39 +0000 |
| Subject: | Re: db_dataobject : connection handling ? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15903@lists.php.net to get a copy of this message | ||
On Mon, 29 Nov 2004 14:03:24 +0100, henk <henk@poppunt.be> wrote:
> Hi,
>
> I'm having some problems with db connections that stay open. I'm
> suspecting db_dataobject. Could someone tell me how I should handle
> connection with db_dataobject ? Should/Can I close them manually ?
> Can I force the connection to close ?
>
It should create no more than 1 connection per DB. The connections
should be closed when the script ends. If you want to do it manually
you can always use getDatabaseConnection() and disconnect it yourself.
--
Justin Patrin