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 types of Data Can Be Used as Array Keys?

1023


Can we extend two classes in php?

1061


What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?

1043


How do you end php?

977


Explain Booleans in PHP?

1082


What is the use of callback in php?

1000


What are php variables?

975


What is static variable in php?

1088


What does mvc stand for and what does each component do?

1082


Declare a new variable in php equal to the number 3;

936


Explain me soundex() and metaphone()?

991


What is x+ mode in fopen() used for?

1045


What is the output of the following php code?

937


Explain the types of string comparision function in PHP

947


Please explain is it possible to use com component in php?

998