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 many escape sequences are recognized in double-quoted strings in php?
What is the maximum size of a table in mysql?
Should I learn php before wordpress?
What is the difference between pop3 IMAP and MAPI?
What are the 3 scope levels available in php and how would you define them?
How the values are ordered in an array?
Define about declare construct?
Is php a middleware?
What function should you use to join array elements with a glue string?
Difference between mysql_connect and mysql_pconnect?
Why framework is used in php?
What are the data types in php?
What is the use of mysql_fetch_assoc in php?
How can I find my php version?
Is php a dying language?