mysqlmysql-pconnect

when does mysql_pconnect() connection gets closed


It is know that connection to the SQL server will not be closed when the execution of the script ends. Instead, the link will remain open for future use (mysql_close() will not close links established by mysql_pconnect()).

So when does the mysql_pconnect() connection gets closed ?


Solution

  • You should read this:

    http://www.php.net/manual/en/features.persistent-connections.php