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

What is composer phar?

923


Differentiate between require and include?

922


What is string function sql?

937


Explain how is it possible to set an infinite execution time for php script?

924


What is php and how do you use it?

940


Which function you can use in php to open a file for reading or writing or for both?

1028


what is benefit of magento?

2486


Is php better than python?

911


Is polymorphism inherited?

944


Tell me what is needed to be able to use image function?

930


What is c++ polymorphism?

912


Is a number php?

927


What is php artisan serve?

925


Why do we use inheritance in php?

996


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

951