Re: [PHP] odbc_pconnect doesnt reuse connection

2002-04-03 Thread eric.coleman
al Message - From: "Maris Kalnins" <[EMAIL PROTECTED]> To: <> Sent: Wednesday, April 03, 2002 10:11 AM Subject: Re: [PHP] odbc_pconnect doesnt reuse connection > because odbc_connect takes some time to establish connection > while odbc_pconnect establishes it once

Re: [PHP] odbc_pconnect doesnt reuse connection

2002-04-03 Thread Maris Kalnins
aris Kalnins" <[EMAIL PROTECTED]> > To: < > Sent: Wednesday, April 03, 2002 3:07 AM > Subject: [PHP] odbc_pconnect doesnt reuse connection > > > > Hi! > > > > Configuration: WinXP, the latest Apache, PHP4 > > > > The problem is that every t

Re: [PHP] odbc_pconnect doesnt reuse connection

2002-04-03 Thread eric.coleman
Why won't you just use odbc_connect ? - Original Message - From: "Maris Kalnins" <[EMAIL PROTECTED]> To: < Sent: Wednesday, April 03, 2002 3:07 AM Subject: [PHP] odbc_pconnect doesnt reuse connection > Hi! > > Configuration: WinXP, the latest Apache, P

[PHP] odbc_pconnect doesnt reuse connection

2002-04-02 Thread Maris Kalnins
Hi! Configuration: WinXP, the latest Apache, PHP4 The problem is that every time the script runs and the following command is executed $cx=odbc_pconnect($G_dbname, $G_dblogin, $G_dbpassw); it happens very often that a new connection is created instead of reusing the old one! Is there any idea w

[PHP] odbc_pconnect doesnt reuse connection

2002-04-02 Thread Maris Kalnins
Hi! Configuration: WinXP, the latest Apache, PHP4 The problem is that every time the script runs and the following command is executed $cx=odbc_pconnect($G_dbname, $G_dblogin, $G_dbpassw); it happens very often that a new connection is created instead of reusing the old one! Is there any idea w

Re: [PHP] odbc_pconnect

2002-04-02 Thread Maris Kalnins
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 constr

Re: [PHP] odbc_pconnect

2002-04-02 Thread Miguel Cruz
On Tue, 2 Apr 2002, Maris Kalnins wrote: > Yes I am using CGI... > So that means under Windows using Apache Server it is impossible to do that? Can't PHP be run as a module under Apache for Windows? miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] odbc_pconnect

2002-04-02 Thread Maris Kalnins
Yes I am using CGI... So that means under Windows using Apache Server it is impossible to do that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] odbc_pconnect

2002-04-02 Thread Miguel Cruz
On Tue, 2 Apr 2002, Maris Kalnins wrote: > I have a situation where I need to keep connection still active after php > script is done and page displayed! > I tried to use > > $cx=odbc_pconnect($G_dbname, $G_dblogin, $G_dbpassw); > > But unfortunately connection closes automatically when script i

[PHP] odbc_pconnect

2002-04-02 Thread Maris Kalnins
Hi All! I have a situation where I need to keep connection still active after php script is done and page displayed! I tried to use $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 aliv