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:[EMAIL PROTECTED]]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to