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
How to count all the lines of code in a directory and sub folder?
What is url encoding and decoding in php?
Can you explain, when to use if-else if-else over switch statements?
Explain NULL?
What is the default time in seconds for which session data is considered valid?
How can we connect to a mysql database from a php script?
What is the difference between exception::getmessage and exception::getline?
Why php is used in html?
What is an example of a variable?
What software is required for php?
What is whitespace in php?
Xplain is it possible to use com component in php?
Where do I run php code?
How to execute a php script from the command line?
What is the use of stripslashes in php?