What is difference between mysql_connect and mysql_pconnect?
4596
13-Jun-2011
Anonymous User
13-Jun-2011mysql_connect opens up a database connection every time a page is loaded. mysql_pconnect opens up a
connection, and keeps it open across multiple requests.
mysql_pconnect uses less resources, because it does not need to establish a database connection every
time a page is loaded.