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
What is composer phar?
Differentiate between require and include?
What is string function sql?
Explain how is it possible to set an infinite execution time for php script?
What is php and how do you use it?
Which function you can use in php to open a file for reading or writing or for both?
what is benefit of magento?
Is php better than python?
Is polymorphism inherited?
Tell me what is needed to be able to use image function?
What is c++ polymorphism?
Is a number php?
What is php artisan serve?
Why do we use inheritance in php?
How many escape sequences are recognized in double-quoted strings?