Re: odbc_pconnect
| From: | Peter Vereshagin | Date: | Wed, 03 Apr 2002 04:36:58 +0000 |
| Subject: | Re: odbc_pconnect | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-18150@lists.php.net to get a copy of this message | ||
On Tue, 2 Apr 2002 18:27:40 +0300, Maris Kalnins <proximus@btv.lv> wrote:
> $cx=odbc_pconnect($G_dbname, $G_dblogin, $G_dbpassw);
>
> But unfortunately connection closes automatically when script is done!
> What must I do to keep connection alive and be able to use $cx again and
> again without connectign?
You would notice that the connection on a server does not close after your script with *_pconnect is
done! Instead, next time you call your script with *_pconnect the same connection _is_ being used!