Page 1 of 1

Sorry for this stupid question.. but I have to know...

Posted: Thu Nov 02, 2006 5:11 pm
by seodevhead
Is it really imperative that I close the mysql connection on all my php files with mysql_close(); ??? I have been getting lazy and not closing the DB connection on a lot of files... is this bad? Thanks and sorry if this is a stupid question... you may delete if you don't want this in the forums. :(

Posted: Thu Nov 02, 2006 5:15 pm
by wtf
no...

I've never used mysql_close()

From the manual

Using mysql_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution.

Posted: Thu Nov 02, 2006 5:20 pm
by RobertGonzalez
This is being discussed here --> viewtopic.php?p=326114#326114.
the PHP manual on [url=http://php.net/function.mysql_close]mysql_close()[/url] wrote:Using mysql_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution.

Posted: Thu Nov 02, 2006 5:30 pm
by seodevhead
Everah wrote:This is being discussed here --> viewtopic.php?p=326114#326114.
the PHP manual on [url=http://php.net/function.mysql_close]mysql_close()[/url] wrote:Using mysql_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution.
Thanks guys... I feel better.

P.S. You can delete this thread if you like... I know how some questions are too stupid for posting.

Posted: Thu Nov 02, 2006 5:34 pm
by Luke
It's not that some questions are too stupid... it's that some questions could be easily answered by searching the forums or google.

Posted: Thu Nov 02, 2006 6:44 pm
by RobertGonzalez
seodevhead wrote:P.S. You can delete this thread if you like... I know how some questions are too stupid for posting.
Search first. Some questions are pretty stupid, others are very legitimate questions, often answered previously by someone helping someone else. Often times these answers can be found through our good friend Google, sometimes we can even find the answers here. But if it is at all possible, search for the answer before posting the question.

PS this thread does not need to be deleted.

Posted: Thu Nov 02, 2006 10:21 pm
by seodevhead
Thanks guys.