Did you read the manual page? http://us4.php.net/manual/en/function.mysql-pconnect.php [quote]First, when connecting, 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. [/quote] In practice it might not act like that though, it depends on your server set up. > -----Original Message----- > From: Mengü Gülmen [mailto:mengus@soursummitz.org] > Sent: Wednesday, May 28, 2003 2:21 PM > To: php-db@lists.php.net > Subject: connection pooling > > > Hi there, > I've been looking all over the net for connection pooling information > about php and mysql but I didn't come across anything. > > Do you know anything like the connection pooling system of asp? > In php, there is the pconnect, persistent connection which, as far as > I know does nothing but open a connection and execute all the commands > via that connection. > > What I want is, something that does this: "If there is no existing > connection or the existing connection is in use, open another > persistent connection. if there is an open connection and it's idle, > use that one" > > If there is nothing that can do this, I'll start to try to write it on > my own. And of course, any help would be appreciated :) > > > -- > Finest, > Mengü, > mailto:mengus@soursummitz.org > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php