Friday, 13 February 2015

What is the difference between mysql connect and mysql pconnect in PHP?

The difference between connect() and pconnect, it is simply like a shop when u entering in shop you will open the door and take your iteam come out and close the door that is called connect() in mysql the connection to the mysql database will be automatically closed when the script terminates.
when the door of the shop is already opend and never close it is called pconnect(), open a connection with mysql_pconnect(), the connection will not be closed and will “persist” for future use.

No comments:

Post a Comment