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
What is the use of trim in php?
What is difference between web service and api?
What is difference between md5 and SHA256?
How does csrf token work?
How to set session.gc_divisor properly?
Why is php used for web development?
What is the integer?
What happens when submit button is clicked?
What is the difference between nowdoc and heredoc?
Can we use onclick in submit button?
What is the main difference between require() and include()?
Explain the visibility of the property or method?
If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?
How we can get the number of elements in an array?
How to delete file in php?