1.

What Is The Difference Between Mysql_connect And Mysql_pconnect?

Answer»

<P>Mysql_connect:

  • It opens a new connection to the database.
  • EVERY time you need to open and close database connection, depending on the request.
  • Opens page every time when it loaded.

Mysql_pconnect:

  • In Mysql_pconnect, "p" stands for PERSISTENT connection so it opens the persistent connection.
  • the database connection can not be closed.
  • it is more useful if your SITE has more TRAFFIC because there is no need to open and close connection frequently and every time when page is loaded.

Mysql_connect:

Mysql_pconnect:



Discussion

No Comment Found