Why persistent connection ?
| From: | Steve Lewis | Date: | Thu, 06 Jul 2000 19:43:39 +0000 |
| Subject: | Why persistent connection ? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-918@lists.php.net to get a copy of this message | ||
From: Chris Adams <chris@digitaria.com>
>Yes, you'll need the pconnect call on each page. The pconnect function
>should behave identically to the regular connect function except that if
>a connection is already open, it will reuse that connection instead of
>opening a new one.
Perhaps you can explain what I am doing wrong then? I was calling the
pconnect function exclusively, and to my surprise I discovered that in a
few hours of devleoping/testing I had about 23 conections to MySQL open on
my LAMP setup.
Steve