Re: odbc_pconnect
| From: | Maris Kalnins | Date: | Tue, 02 Apr 2002 21:14:44 +0000 |
| Subject: | Re: odbc_pconnect | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-91219@lists.php.net to get a copy of this message | ||
thanks, I configured php under apache as a module
now connection doesn't disappear after script is done
it stays alive..
now another problem:
first time I open connection this way..
if (empty($cx)){
$cx=odbc_pconnect($G_dbname, $G_dblogin, $G_dbpassw);
}
if next time i will use the same construction it will not reuse my existing
connection
but it generates another one which stays alive like the first one..
after a while i get an odbc message
"Database server connection limit exceeded"
The question is:
how can I determine if connection is already active and how can I reuse it
then?
Thanks