What is differenc between mysql_connect and mysql_pconnect

Questions by mrbaliram   answers by mrbaliram

Showing Answers 1 - 4 of 4 Answers

vijaya

  • May 31st, 2006
 

mysql_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.

Deepak Radhakrishnan

  • Feb 14th, 2007
 

mysql_pconnect is a persistant connection to the database.Use this with care...as the number of connections to the database is limited.

  Was this answer useful?  Yes

manas ranjan dikhit

  • May 31st, 2007
 

mysql_connect  establish a new connection every time when it connect to database but mysql_pconnect first searches if there is pre-existing connection or not. if it found connection then it make use of that connection to databases.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions