the documentation is so little about mysql_pconnect() function. it says mysql_close() function will not close it. then,
thanks/erick
PHP simply opens as many connections as it needs to keep up with the demand. But... some webservers keep their child-processes alive, but start new ones when new requests come in. That way you may have many connections even if you are browsing by yourself.
the database server decides when to close idle connections.
Exactly what vincint said...
A good rule of thumb for web servers running persistant connections is that you should limit the maximum number of web server children to less than the maximum number of backends your database is configured for.