|  | Posted by Erwin Moller on 02/05/07 12:04 
J.O. Aho wrote:
 > Erwin Moller wrote:
 >
 >>> 1. Are there better ways to manage connections and easier data retrieval
 >>> to ensure performance of the site under heavy load?
 >>
 >> PHP recycles its connection behind your back.
 >> If scriptA.php connects to a database, a connection is build based on the
 >> login-credentials (host, database, username, password, etc).
 >>
 >> If scriptB.php, scriptC.php, etc, use the same logincredentials, which is
 >> almost always the case in webdriven databases, you'll find that they do
 >> NOT need the connection/authentication overhead that scriptA.pp needed.
 >
 > That depends on which connect function you use, *_connect or *_pconnect.
 >
 
 True, I am talking about pconnect, but didn't say so anywhere, sloppy. :-/
 
 Regards,
 Erwin Moller
  Navigation: [Reply to this message] |