What is the difference between mysql_connect and
mysql_pconnect ? Which one is good in terms of performance ?

Answer Posted / modi

mysql_pconnect Open a persistent connection to a MySQL server

First, when connecting, the function would first try to find
a (persistent) link that's already open with the same host,
username and password. If one is found, an identifier for it
will be returned instead of opening a new connection...

Second, the connection to the SQL server will not be closed
when the execution of the script ends. Instead, the link
will remain open for future use (mysql_close() will not
close links established by

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does php support inheritance?

502


What is http php?

489


Can we use get instead of post?

492


How to check curl is enabled or not in PHP

622


What are the special characters you need to escape in single-quoted stings?

505






Does php support polymorphism?

497


Which php mvc framework is best?

555


Can I write php code in html file?

530


Why do we use inheritance in php?

526


How can I find my php version?

536


Are php variables global?

549


Is php an object or array?

510


What is json php?

523


Tell me which programming language does php resemble to?

497


What is the goto statement useful for?

543