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
Does php support inheritance?
What is http php?
Can we use get instead of post?
How to check curl is enabled or not in PHP
What are the special characters you need to escape in single-quoted stings?
Does php support polymorphism?
Which php mvc framework is best?
Can I write php code in html file?
Why do we use inheritance in php?
How can I find my php version?
Are php variables global?
Is php an object or array?
What is json php?
Tell me which programming language does php resemble to?
What is the goto statement useful for?