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 are the differences between session and cookie?
How to delete an element from an array?
Explain about PHP cookies?
In how many ways we can retrieve the data in the result set of mysql using php?
Is salary a ratio or interval?
How to convert the first character to upper case?
Explain me what are the main error types in php and how do they differ?
What is a persistence cookie?
Do you know design patterns. List few?
What is php7?
How are php sessions stored?
What is difference between post and put in rest?
What is the integer?
What are the differences between php constants and variables?
What is php beginner?