Sorry for this stupid question.. but I have to know...
Moderator: General Moderators
- seodevhead
- Forum Regular
- Posts: 705
- Joined: Sat Oct 08, 2005 8:18 pm
- Location: Windermere, FL
Sorry for this stupid question.. but I have to know...
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. 
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
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.
- seodevhead
- Forum Regular
- Posts: 705
- Joined: Sat Oct 08, 2005 8:18 pm
- Location: Windermere, FL
Thanks guys... I feel better.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.
P.S. You can delete this thread if you like... I know how some questions are too stupid for posting.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
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.seodevhead wrote:P.S. You can delete this thread if you like... I know how some questions are too stupid for posting.
PS this thread does not need to be deleted.
- seodevhead
- Forum Regular
- Posts: 705
- Joined: Sat Oct 08, 2005 8:18 pm
- Location: Windermere, FL