I have some questions about PHP and mysql
1) As the doc tells, the mysql_pconnect will connect to the db once and cannot be released with mysql_close. I am wondering when will the this connection be closed()?
2) Can I do mysql_pconnect when a session being started. Now, I do the pconnect everytime I perform an sql-query
3) I got so many users visiting my webpage and each one will query the database. In my db codes, I use pconnect to establish a constant connection. I am not sure if every user has an unique constant connection to query the database or all users share the same connection. If the former is true, should I use mysql_connect and mysql_close instead
Thanks in advance.