Difference between mysql_connect and mysql_pconnect in php?
Answer Posted / aatit
The following are the differences -
- A new connection is established to the database by using
mysql_connect, where as mysql_pconnect opens a persistant
connection to the database.
- mysql_connect can be used to close the connection, where as
mysql_pconnect can not close the connection.
- Database is opened every time when the page is loaded by
mysql_connect. Whereas by using mysql_pconnect, database need
not be connected every time.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How do I install php and apache on windows 10?
Do you know how to get the ip address of the client?
How to reset/destroy a cookie?
What are php variables?
Write a php script to get the largest key in an array?
Tell me what does the initials of php stand for?
Is php used for frontend or backend?
What is difference between array_merge and array_combine?
How can we check the value of a given variable is a number?
Is python similar to php?
What is isset php?
What are the functions of string?
What is a controller in programming?
What is default session time and path in php?
Can we use php variable in javascript?