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?? 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. 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)? 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. Link to comment https://forums.phpfreaks.com/topic/219719-mysqli_kill/#findComment-1139056 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.