johnsmith153 Posted November 24, 2010 Share Posted November 24, 2010 Some people say you MUST use this before mysqli_close otherwise it takes 30 secs to actually close. Some people say DON'T use this before mysqli_close as it would not actually close it. What do I do?? Quote Link to comment https://forums.phpfreaks.com/topic/219719-mysqli_kill/ Share on other sites More sharing options...
Mchl Posted November 24, 2010 Share Posted November 24, 2010 Unless your DBA tells you otherwise, don't use it. Quote Link to comment https://forums.phpfreaks.com/topic/219719-mysqli_kill/#findComment-1139046 Share on other sites More sharing options...
johnsmith153 Posted November 24, 2010 Author Share Posted November 24, 2010 What should I use to close the connection (allowing PHP to close never seems great to me)? I see lots of memory-freeing functions available in the mysql extension and the mysqli extension/class. Should I use anything (to be perfect)? Quote Link to comment https://forums.phpfreaks.com/topic/219719-mysqli_kill/#findComment-1139053 Share on other sites More sharing options...
ManiacDan Posted November 24, 2010 Share Posted November 24, 2010 Test it yourself: if it takes 30 seconds without it, use it. PHP will close the connections automatically, but if you're really worried, use mysqli_close. Quote Link to comment https://forums.phpfreaks.com/topic/219719-mysqli_kill/#findComment-1139056 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.