RE: [PHP] Closing Databases
| From: | Andrew Hill | Date: | Wed, 14 Feb 2001 16:47:12 +0000 |
| Subject: | RE: [PHP] Closing Databases | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39669@lists.php.net to get a copy of this message | ||
Karl,
That should be good enough. What you were told is true - PHP does close
connections when the script exits, but every so often this can fail, so
closing the connection explicitly is good practice.
Best regards,
Andrew
--------------------------------------
Andrew Hill - OpenLink Software
Director Technology Evangelism
eBusiness Infrastructure Technology
http://www.openlinksw.com
> -----Original Message-----
> From: Karl J. Stubsjoen [mailto:karlflips@kstub.com]
> Sent: Wednesday, February 14, 2001 11:47 AM
> To: PHP Mailing List
> Subject: [PHP] Closing Databases
>
>
> I am making ODBC connections and MySQL connections, and want to make sure
> I'm closing my connection properly. Someone once replied that you do not
> need to worry about terminating the query set (for MySQL), that PHP takes
> care of this for you, is this true for the ODBC connection as well?
>
> So what I am doing, is making a connection to the db, querying
> the db using
> select statements, and then releasing the db connection with: mysql_close
> or odbc_close. Is that good enough?
>
> Thanks!
>
> Karl
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>