[TriLUG] mysql close statements
mike at dogstar1.com
mike at dogstar1.com
Fri Feb 20 15:00:34 EST 2004
If you're using PHP, the connections will close automatically when the
script ends. However, with and included script I'm not sure whether the
connection would close after the include file was finished or after the
calling script was completed. It couldn't hurt to close them after they're
needed just to be safe.
Mike
Original Message:
-----------------
From: spain at ncssm.edu
Date: Fri, 20 Feb 2004 11:00:47 -0500
To: trilug at trilug.org, lug at lists.ncsu.edu
Subject: [TriLUG] mysql close statements
I just wanted to get a opinion from the masses on close statements for
mysql..
If you open a connection in an include file, run your query, and then
display the results..
Is it necessary to include a mysql close connection statement? Or will
these open connections you create close out eventually? Does it have any
effect on mysql server if you don't close out the connection?
_____
Sincerely,
Jamil Hassan Spain
NC School of Science and Mathematics | External Programs
Phone: 919-416-2641
Web: www.dlt.ncssm.edu <http://www.dlt.ncssm.edu/>
Email: spain at ncssm.edu <mailto:spain at ncssm.edu>
_____
--
TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
More information about the TriLUG
mailing list