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


Please Help Members By Posting Answers For Below Questions

How many escape sequences are recognized in double-quoted strings in php?

540


What is the maximum size of a table in mysql?

541


Should I learn php before wordpress?

501


What is the difference between pop3 IMAP and MAPI?

643


What are the 3 scope levels available in php and how would you define them?

514






How the values are ordered in an array?

580


Define about declare construct?

614


Is php a middleware?

519


What function should you use to join array elements with a glue string?

556


Difference between mysql_connect and mysql_pconnect?

510


Why framework is used in php?

524


What are the data types in php?

551


What is the use of mysql_fetch_assoc in php?

518


How can I find my php version?

549


Is php a dying language?

543