Get Started
1392

Q: What is the difference between mysql_connect and mysql_pconnect?

  • Show Answer
  • Workspace

Answer :
Explanation :

There is a decent page in the php manual on the subject, in short mysql_pconnect() makes a persevering association with the database which implies a SQL join that don't close when the execution of your script closes. mysql_connect()provides just for the database new association while utilizing mysql_pconnect , the capacity would first attempt to locate a (relentless) connection that is as of now open with the same host, username and password. On the off chance that one is found, an identifier for it will be returned as opposed to opening another connection... the connection with the SQL server won't be terminated when the execution of the script ends. Rather, the link will stay open for future use.

The Most Comprehensive Exam Preparation Platform

Get the Examsbook Prep App Today