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...

Difference between mysql_connect and mysql_pconnect in php?

Answer Posted / aatit

The following are the differences -

- A new connection is established to the database by using
mysql_connect, where as mysql_pconnect opens a persistant
connection to the database.

- mysql_connect can be used to close the connection, where as
mysql_pconnect can not close the connection.

- Database is opened every time when the page is loaded by
mysql_connect. Whereas by using mysql_pconnect, database need
not be connected every time.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are getters and setters php?

1069


What is whitespace in html?

1071


What are the differences between php constants and variables?

1232


Which function is used in php to check the data type of any variable?

997


Where are sessions stored php?

1061


What is the purpose of php?

1007


What is difference between array_merge and array_combine in php?

1096


Is php secure?

1023


What is difference between static and constant in php?

1060


Why laravel is best php framework?

1052


What is meant by pdo in php?

1054


Define urlencode() and urldecode() used in php?

1257


Can I use php in html?

1028


Tell me how can we get the error when there is a problem to upload a file?

1057


What is c++ polymorphism?

1029