Check out this link for an explanation of the mysql_pconnect funtion:
http://www.php.net/manual/en/function.mysql-pconnect.php It explains what a
persistent connection is and how it "thinks". Unless you have a legitimate
need for a persistent connection, try using mysql_connect(). It stays open
until the script that opened it stops running or until you say
mysql_close(). A connection opened with mysql_pconnect() won't be closed if
you call mysql_close().

HTH
Rich

-----Original Message-----
From: SpamSucks86 [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 12:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Build-up of MySQL Sessions


I'm running windows 2000 and the latest releases of PHP and MySQL. All
database connections are made with mysql_pconnect(). Connections build
up, however. The only person connecting to this webserver at the moment
is myself. It seems that it opens connections and doesn't close them, or
opens unnecessary ones. How can I fix this? Thanks for any and all help.



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to