mysql_close() - necessary?
Posted: Thu Jul 31, 2003 9:30 am
I used to not worry about closing my mysql-db connection. After all, the PHP-manual totally falls in line with my lazy approach:
I am not an mySQL-guy, but does anyone have a clue why this could have happened?
Great. The connection on the server in question is non-persistent, I am sure of that. Now I've just checked the error-log there and "Too many database-connections" came up at least 10 times during the last month.PHP Manual wrote: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.
I am not an mySQL-guy, but does anyone have a clue why this could have happened?