Difference between mysql_connect and mysql_pconnect in php?
Answer Posted / md amanullah
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 ? | 11 Yes | 1 No |
Post New Answer View All Answers
What is the purpose of php?
Give the case where we can use get and we can use post methods?
How to send a cookie to the browser?
What is http php?
Tell me how can we get the error when there is a problem to upload a file?
How many keywords are there in php?
What websites use php?
What is the array in php?
How do I run a php file?
What are the common uses of php?
What is php used for?
Which function is used in php to check the data type of any variable?
Why use php artisan serve?
How to create database connection and query in php?
What does the unset() function means?