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 varchar mysql?

0 Answers  


What is the difference between mysql_connect and mysql_pconnect ? Which one is good in terms of performance ?

4 Answers  


i was set new individual folder for saving session values,the folder name is session and i set 777 permission,using session.save_path function like session.save_path "/home21b/sub004/sc21311-ULCX/candyoflove.com/session/" but it causing Warning: Unknown(): SAFE MODE Restriction in effect. The script whose uid/gid is 12112/12112 is not allowed to access /home21b/sub004/sc21311-ULCX/candyoflove.com/session owned by uid/gid 12267/12267 in Unknown on line 0 ,please tell what changes make this script, i was using .htaccesss file..plz help me....

1 Answers  


Shopping cart online validation i.e. how can we configure Paypal, etc.?

1 Answers   INDUS,


How to support multiple-page forms?

0 Answers  






What is cookies php?

0 Answers  


Would you initialize your strings with single quotes or double quotes?

4 Answers  


How can you declare the array in php?

0 Answers  


Explain object-oriented methodology in php?

0 Answers  


What is the difference between $message and $$message in php?

0 Answers  


How cookies are transported from servers to browsers?

0 Answers  


How to get a random value from a php array?

0 Answers  


Categories