Re: Why persistent connection ?
| From: | Chris Adams | Date: | Thu, 06 Jul 2000 17:09:53 +0000 |
| Subject: | Re: Why persistent connection ? | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-905@lists.php.net to get a copy of this message | ||
> If you use persistent connections, do you have to specify
pg_pconnect("name
> of DB"); on each page of your script? or say opening the connection once
on
> the first page ... then will each query be 'previously' connected to the
db
> so as to perform it's operation?
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.