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: [EMAIL PROTECTED] Date: Fri, 20 Feb 2004 11:00:47 -0500 To: [EMAIL PROTECTED], [EMAIL PROTECTED] 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: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> _____ -- 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/ . -- 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
