What is the difference between mysql_connect and
mysql_pconnect ? Which one is good in terms of performance ?

Answer Posted / ranjan goyal

In addition to what Brijendra said, persistanty connections
are limited per server so limited number of people will
have access to the website so infact it will stop high
traffic that implies if we say assuem that our site will
have high traffic then we must not use persistent
connections. Persistent connections should be used only
where we only have limited number of users

Is This Answer Correct ?    21 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get number of days between two given dates using PHP?

490


Is php a backend?

545


What is mean by an associative array?

547


What does explode do in php?

562


What is the advantage of runtime polymorphism?

519






How can we define a variable accessible in functions of a php script?

557


Can php use gettext?

565


What is difference between action hook and filter hook?

503


Explain the difference between static and dynamic websites?

524


Is null check in php?

532


What is meant by MIME?

638


What is difference between strstr() and stristr()?

538


What are the advantages of indexes in php?

575


How send email using php?

544


What is session management php?

539