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
Is it possible to submit a form with a dedicated button?
What is the best php framework 2018?
What is difference between get and post in php?
Write a program to display table of a number using php?
What is the difference between php and javascript?
Do you know what is the difference between the include() and require() functions?
For image work which library is used in php?
What is Mcrypt used for?
what is difference between PHP4 , PHP5
What is file upload?
What is meant by session in php?
How to redirect a url from http to https in .htaccess?
Explain what is the difference between session and cookie?
How to check an element is exists in array or not in php?
What is $_ get and $_ post in php?