Re: obdc_pconnect problems

From: Date: Fri, 06 Sep 2002 09:42:27 +0000
Subject: Re: obdc_pconnect problems
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-21603@lists.php.net to get a copy of this message
Escuder Nicolas wrote:
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.
I believe the reason is because the persistent connections are per httpd process. As you navigate through you web site you cannot control which httpd process the main server hands your request off to. Eventually, all httpds will have a connection. Martin

« previous php.db (#21603) next »