Difference between mysql_connect and mysql_pconnect?
Difference between mysql_connect and mysql_pconnect?
mysql_pconnect : Creates a persistent connection to the database that means a SQL link do not close when the execution of your script ends. Mysql_pconnect checks if that if the same host, username and password connection is already opened an identifier for it will be returned instead of making a new connection. While mysql_connect() provides the connection and closes the connection when script execution ends.
Advertisements