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 are psrs? Choose 1 and briefly describe it?
What is difference between array_merge and array_combine?
What are the differences between require and include?
What is the difference between include and require?
What is data type in php?
How many escape sequences are recognized in double-quoted strings?
Can I learn php in a month?
What function do we use to find length of string, and length of array?
What the difference between the 'bitwise and' operator and the 'logical and' operator?
What is difference between rest api and restful api?
What is $$ in php?
Why would we use === instead of ==?
Does wordpress run on php 7?
Is null in php?
Do you know what is the function mysql_pconnect() usefull for?