I want to know the difference between mysql_connect() and mysql_pconnect()? A brief idea on this is welcome.
Printable View
I want to know the difference between mysql_connect() and mysql_pconnect()? A brief idea on this is welcome.
The following two links gives a detailed explanation on the difference between mysql_connect() and mysql_pconnect()
[U][COLOR="Blue"]http://www.php.net/manual/en/function.mysql-pconnect.php[/COLOR][/U][U][COLOR="blue"]
[url=http://www.php.net/manual/en/function.mysql-connect.php]PHP: mysql_connect - Manual[/url][/COLOR][/U]
mysql_connect - opens a connection to the mysql server and closes when we use mysql_close
mysql_pconnect - this opens a constant connection to the mysql server which cannot be close by mysql_close and can be reused.