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
How can we submit from without a submit button?
Tell me how to find the position of the first occurrence of a substring in a string?
What is htaccess in php?
How to get a random value from a php array?
How to connect to a url in php?
Can php variables have numbers?
What is difference between static and constant in php?
How to create a table using php?
Is runtime polymorphism overriding?
What does the scope of variables mean?
Explain about require and include function?
What is the use of namespace in php?
How to write comment in php?
How to delete a file from the system?
What is session cookies php?