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 is the use of token in php?

972


When to use self over $this?

987


What does nan stand for computer science?

970


What are the different errors in php?

992


How can you tell if a number is even or odd without using any condition or loop?

993


Why does php start with variables?

1002


what is PDO?

1251


What is the difference between == and === operator in PHP?

976


How to convert one date format into another in php?

901


What is php and why it is used?

1033


How to close a session properly?

973


Write logic to print Floyd's triangle in PHP?

1041


How do I expire a php session after 30 minutes?

1049


How to reset/destroy a cookie in php?

957


What is session management php?

1057