[thelist] PHP MySQL Connections

Matt Warden mwarden at gmail.com
Thu Jan 27 19:11:56 CST 2005

> > Alternatively, you may find this helpful:
> > http://us3.php.net/manual/en/features.persistent-connections.php
> Yah, I'm already using mysql_pconnect(), so I know that each object's
> connection to MySQL is persisting.  But I am unclear on whether the
> connections are specific to the objects creating them...?

First paragraph of the link I sent you:
"Persistent connections are links that do not close when the execution
of your script ends. When a persistent connection is requested, PHP
checks if there's already an identical persistent connection (that
remained open from earlier) - and if it exists, it uses it. If it does
not exist, it creates the link. An 'identical' connection is a
connection that was opened to the same host, with the same username
and the same password"

Matt Warden
Miami University
Oxford, OH, USA

This email proudly and graciously contributes to entropy.

More information about the thelist mailing list