Interview Preparation PHP Subjective
May 10, 2013

What is difference between mysql_connect and mysql_pconnect ?

Detailed Explanation

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.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback