RE: [PHP-DB] obdc_pconnect problems
| From: | Andrew Hill | Date: | Thu, 25 Jul 2002 17:34:41 +0000 |
| Subject: | RE: [PHP-DB] obdc_pconnect problems | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-20791@lists.php.net to get a copy of this message | ||
Nicolas,
I believe the _pconnect functions all close connections if you close the
script - they are most useful when you have multiple connections in a
single page.
Also, are you using the CGI version of PHP? Pconnects are not
persistent with this version.
Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software http://www.openlinksw.com
Universal Data Access & Virtuoso Universal Server
-----Original Message-----
From: Escuder Nicolas [mailto:n.escuder@alineanet.com]
Sent: Tuesday, July 23, 2002 11:09 AM
To: php-db@lists.php.net
Subject: [PHP-DB] obdc_pconnect problems
Hello,
i use php as not a cgi it is include in my apache
my odbc is a custom odbc driver
so i try to use odbc_pconnect, the first time it connect to the db i saw
the connection tcp by netstat
and the next time (on the next page) i reuse pconnect with the same db
user pass and sql cursor but it open
a new connection, i see two connection with netstat ... and more
connection if i go another page ...
i don't understand why ...
see you
nicolas.