Pregunta

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.

¿Fue útil?

Solución

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

Otros consejos

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top