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
Explain me the difference between include and require?
What is php dependency injection?
What is the default session time in php?
Explain me how failures in execution are handled with include() and require() functions?
List the different types of print functions available in php?
Is multiple inheritance supported in php?
What are the difference between abstract class and interface in oops?
What are soundex() and metaphone() functions in php?
What is session data?
Explain what are some new features introduced in php7?
How can you create a session in php?
Can you give example for trait in php?
Is php easier than javascript?
Is null empty php?
Explain about the data types in PHP?