What is the difference between mysql_connect and
mysql_pconnect ? Which one is good in terms of performance ?
Answer Posted / brijendra
mysql_connect opens a normal connections to mysql database.
mysql_pconnect opens a persistant connection i.e. if there
is any connection open in the script it will use that
connection not making a new connection each time.
at very high traffic enviornment mysql_connect provides
better performance
| Is This Answer Correct ? | 38 Yes | 3 No |
Post New Answer View All Answers
How do you connet mysql database with php?
How to set cookies in PHP?
What is the purpose of php?
What is the difference between md5(), crc32() and sha1() crypto on php?
Explain do you use composer? If yes, what benefits have you found in it?
Tell us what is the difference between session_unregister() and session_unset()?
How to open a file in php?
What is the use of htmlentities in php?
What is $_ get in php?
Is it easy to learn php?
Explain what is the difference between mysql_fetch_array() and mysql_fetch_assoc()?
Why are sessions used?
How is the comparison of objects done in php?
How do you trim spaces in excel?
Explain about looping in PHP?