PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I always thought php closed your database connection automaticly. However i think this is not the case when using mysql_pconnect ? How do you close it?
Yes, if you use mysql_connect() it will close automatically. If you use mysql_pconnect() the conection will be open between requests and will not close when the script ends. Even mysql_close() will not close a mysql_pconnect() link.