what is "mysql_pconnect", i know mysql_connect but what it
is pconnect is their?

Answers were Sorted based on User's Feedback



what is "mysql_pconnect", i know mysql_connect but what it is pconnect is their?..

Answer / raman

mysql_pconnect means, persistent connection with mysql. It
doesn't break the connection even after closing the page.

Is This Answer Correct ?    7 Yes 1 No

what is "mysql_pconnect", i know mysql_connect but what it is pconnect is their?..

Answer / deepaa.n

mysql_pconnect() opens a persistent mysql connection.
It returns the connection on success or failure. It mostly same as mysql_connect(), but it has 2 major differnts. that are
mysql_pconnect() will try to find a connection that's already open, with the same host, username and password. If one is found, this will be returned instead of opening a new connection
It will not be closed when the execution of the script ends . It will stay open for future use.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More PHP Interview Questions

What is the difference between include and include_once ? Which is one is good in terms of performance ?

2 Answers   Dest,


Php code to find whether a number armstrong or not?

0 Answers  


How to protect special characters in query string?

0 Answers  


Is ruby on rails php?

0 Answers  


In how many ways we can retrieve the data in the result set of mysql using php?

0 Answers  






What is difference between require_once(), require(), include()?

0 Answers  


How the web server interprets php and interacts with the client?

0 Answers  


The left association operator % is used in PHP for?

0 Answers  


What is the Diff. Between echo() and Print() in PHP?

29 Answers   CoreNet, Priya, QueenZend, Sky InfoTech, Syntel,


Does php require a web server?

0 Answers  


What are the advantages of php?

0 Answers  


Is php harder than javascript?

0 Answers  


Categories