Does “mysql_query() or die()” leave open mysql connection?
-
24-12-2020 - |
質問
Does mysql_query() or die()
leave open mysql connection?
My thought is that it calls die()
but it never calls mysql_close()
on the connection...
Thanks.
解決
From the mysql_close docs:
Using mysql_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution. See also freeing resources
他のヒント
http://php.net/manual/en/function.mysql-close.php
Using mysql_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution.
Nope.
Read manual:
Using mysql_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution.
所属していません StackOverflow