WHAT IS DIFFERENCE BETWEEN MYSQL_CONNECT AND MYSQL_PCONNECT?

Awadhendra Tiwari

Total Post:510

Points:2550
Posted by  Awadhendra Tiwari
PHP 
PHP
 2128  View(s)
Ratings:
Rate this:
  1. Awadhendra Tiwari

    Post:510

    Points:2550
    What is difference between mysql_connect and mysql_pconnect?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!