views:

21

answers:

1

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 ?

A: 

You should read this:

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

Andreas Rehm