what is "mysql_pconnect", i know mysql_connect but what it
is pconnect is their?
Answer Posted / deepaa.n
mysql_pconnect() opens a persistent mysql connection.
It returns the connection on success or failure. It mostly same as mysql_connect(), but it has 2 major differnts. that are
mysql_pconnect() will try to find a connection that's already open, with the same host, username and password. If one is found, this will be returned instead of opening a new connection
It will not be closed when the execution of the script ends . It will stay open for future use.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Which php framework is best for beginners?
What is the difference between php traits vs interfaces?
How to protect special characters in query string?
How to include a file code in different files in php?
Is php front end?
What is the use of nl2br() in php?
What is a null coalescing operator in php7?
What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
What is the difference between for and foreach loop in php?
Which is better wamp or xampp?
What is factory pattern in php?
Explain how to execute a php script using command line.
Does php need html?
How do you check if an arraylist is empty?
What is boolean in php?