質問

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top