note 4785 modified in mysql_pconnect by ronabop
| From: | ronabop@php.net | Date: | Sat, 12 Aug 2000 22:52:29 +0000 |
| Subject: | note 4785 modified in mysql_pconnect by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1745@lists.php.net to get a copy of this message | ||
Re: Persistant connections.
You are calling mysql_pconnect on each page load right?
If not, I believe that mysql_pconnect will cause php to close the socket after the page has finished
loading. (unless another client has that socket open). I could be wrong, but the main purpose of
pconnect is so there are as few active connections open to mysql at the same time as possible.
and on a side note: You can't keep a mysql connection in a cookie.
http://www.php.net/manual/function.mysql-pconnect.php