search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
15 views
asked Guru 24.6k points 29 51 76

1 Answer

0 votes
There is a good page in the php manual on the subject, in short mysql_pconnect() makes a persistent connection to the database which means a SQL link that do not close when the execution of your script ends. mysql_connect()provides only for the database new connection while using mysql_pconnect , the function would first try to find a (persistent) link that's already open with the same host, username and password. If one is found, an identifier for it will be returned instead of opening a new connection... the connection to the SQL server will not be closed when the execution of the script ends. Instead, the link will remain open for future use.
answered Guru 39.1k points 10 21 32

Related questions

0 votes
1 answer 73 views
73 views
What would you recommend using between a datetime and a timestamp field, and why?
asked arnav Sr Member 1.3k points 9 21 28
0 votes
1 answer 81 views
81 views
What do you need to do to make PHP and MySQL work together?
asked snag Jr Member 370 points 1 8
1 vote
1 answer 72 views
72 views
What is the easiest way to activate PHP and MySQL on Mac OS 10.6 (Snow Leopard)?
asked denis Sr Member 2.7k points 14 29 59
0 votes
1 answer 78 views
0 votes
1 answer 427 views
427 views
What is the difference between dropping, truncating and deleting from a table.
asked anonymous
...