Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / brijendra

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 ?    38 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you connet mysql database with php?

1051


How to set cookies in PHP?

1078


What is the purpose of php?

950


What is the difference between md5(), crc32() and sha1() crypto on php?

1042


Explain do you use composer? If yes, what benefits have you found in it?

955


Tell us what is the difference between session_unregister() and session_unset()?

989


How to open a file in php?

1054


What is the use of htmlentities in php?

960


What is $_ get in php?

1000


Is it easy to learn php?

944


Explain what is the difference between mysql_fetch_array() and mysql_fetch_assoc()?

891


Why are sessions used?

939


How is the comparison of objects done in php?

918


How do you trim spaces in excel?

1009


Explain about looping in PHP?

1049