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?

Answers were Sorted based on User's Feedback



Difference between mysql_connect and mysql_pconnect in php?..

Answer / md amanullah

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 ?    11 Yes 1 No

Difference between mysql_connect and mysql_pconnect in php?..

Answer / 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

More PHP Interview Questions

Is there a way to encrypt text from php?

5 Answers  


What are the four scalar types of php?

0 Answers  


Is time a dependent variable?

0 Answers  


what is constructor in a class, how it is work, how it is call?

2 Answers  


What good is polymorphism?

0 Answers  


Are objects passed by value or by reference?

0 Answers  


can any please tel me about "Expression Engine"

1 Answers  


Can a super () and this () keywords be in same constructor?

0 Answers  


hey i m a trainee n jus wanted to ask that initially i was given the opportunity for .NET bt that project is abt to complete , nw i m asked to join a project of php on linux which is about to start , so wt say . is it a wise decision to join this project . will i be having job opportunities when i l complete my training after 4 months ? Plz suggest something ASAP .

1 Answers  


Explain why would we use === instead of ==?

0 Answers  


Php says that an array is an ordered map. But how the values are ordered in an array?

0 Answers  


What is indexing in mysql and how do we create indexing in mysql

4 Answers  


Categories