freelance84 Posted August 20, 2010 Share Posted August 20, 2010 I'm confused, I have one book ("php, mysql, & javascript") saying that all connections should be closed at the end of php scripts but then http://php.net/manual/en/function.mysql-close.php saying the opposite. I currently have quite a few complicated php scripts that don't close the connection at the end, should i be closing them or not? Quote Link to comment https://forums.phpfreaks.com/topic/211278-to-close-or-not-to-close/ Share on other sites More sharing options...
trq Posted August 20, 2010 Share Posted August 20, 2010 There is no need to close connections because of garbage collection. Quote Link to comment https://forums.phpfreaks.com/topic/211278-to-close-or-not-to-close/#findComment-1101642 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.