mysql_pconnect()
| From: | Matt Babineau | Date: | Tue, 02 Jul 2002 17:54:24 +0000 |
| Subject: | mysql_pconnect() | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-14537@lists.php.net to get a copy of this message | ||
Here is an interesting question:
To save coding time, what would happen if you put a mysql_pconnect to a
database for a web site on every page of a web site? because it is a
pconnect, would it always reuse the open connection? Does mysql have an
open connection limit? what if you put a mysql_close() statement at the
end of every page? I am trying to avoid making that data connection
every time I need to run a query becaus eit envolves a good amount of
code. Any thoughts?
Matt Babineau
MCWD / CCFD
-----------------------------------------
e: <mailto:matt@criticalcode.com>
matt@criticalcode.com
p: 603.943.4237
w: <http://www.criticalcode.com/> http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105