[PHP] Persistent connections

2013-10-26 Thread Nibin V M
Hello, I have been reading docs and many are telling that persistent connections are kept open indefinitely. But I found in PHP docs that it will not close after script execution like requesting a page; so should it close after the request is over? So when exactly a persistent connection should

Re: [PHP] Persistent connections

2013-10-26 Thread Stuart Dallas
On 25 Oct 2013, at 12:51, Nibin V M wrote: > Thank you for the quick response Stuart...one more doubt..at > http://php.net/manual/en/features.persistent-connections.php they states > > = > This means that when the same client makes a second request to the server, it > may be served by

Re: [PHP] Persistent connections

2013-10-25 Thread Stuart Dallas
On 25 Oct 2013, at 11:10, Nibin V M wrote: > I have been reading docs and many are telling that persistent connections > are kept open indefinitely. But I found in PHP docs that it will not close > after script execution like requesting a page; so should it close after > the request is over? >

Re: [PHP] Persistent connections with mysql_pconnect()

2003-03-25 Thread CPT John W. Holmes
gt; To: "php" <[EMAIL PROTECTED]> > Sent: Tuesday, March 25, 2003 5:11 PM > Subject: [PHP] Persistent connections with mysql_pconnect() > > > > On Tuesday 25 March 2003 09:02 am, "skate" <[EMAIL PROTECTED]> wrote: > > > leaving the connection op

Re: [PHP] Persistent connections with mysql_pconnect()

2003-03-25 Thread skate
> Sent: Tuesday, March 25, 2003 5:11 PM Subject: [PHP] Persistent connections with mysql_pconnect() > On Tuesday 25 March 2003 09:02 am, "skate" <[EMAIL PROTECTED]> wrote: > > leaving the connection open creates security questions, > > and also leaves resources ope

[PHP] Persistent connections with mysql_pconnect()

2003-03-25 Thread John Hicks
On Tuesday 25 March 2003 09:02 am, "skate" <[EMAIL PROTECTED]> wrote: > leaving the connection open creates security questions, > and also leaves resources open, what if a user closes his > browser window, how do you know to close the connection? So are you saying that persistent connections [ i.

[PHP] persistent connections

2002-06-16 Thread Chris Knipe
Lo all, Is there anyway to "manage" persistent connections to MySQL? I've started using them on various of my sites (mysql_pconnect instead of mysql_connect - as in the documentation), but after a few hours, I notice that the connections just keeps on getting more and more and more. Eventually,

Re: [PHP] Persistent connections and transactions

2001-01-29 Thread Nuno Silva
Frank Joerdens wrote: > On Fri, Jan 26, 2001 at 11:01:14AM +, Nuno Silva wrote: > [ . . . ] > >> i ran across this transaction problem vs. persistent conn in pgsql some time ago. >> >> I found two workaround methods: >> - don't use persistent conn's :-) or; >> - start every conn with the us

Re: [PHP] Persistent connections and transactions

2001-01-26 Thread Terrence Chay
on 1/25/01 11:49 AM, Frank Joerdens at [EMAIL PROTECTED] wrote: > On Thu, Jan 25, 2001 at 04:04:24PM -0300, Martin A. Marques wrote: > [ . . . ] >> Of course. But the persistent connection are not working as the manuals say >> they should work. > It appears this riddle has been solved: From a po

Re: [PHP] Persistent connections and transactions

2001-01-26 Thread Frank Joerdens
On Fri, Jan 26, 2001 at 11:01:14AM +, Nuno Silva wrote: [ . . . ] > i ran across this transaction problem vs. persistent conn in pgsql some time ago. > > I found two workaround methods: > - don't use persistent conn's :-) or; > - start every conn with the usual pg_pconnect and then query a ro

Re: [PHP] Persistent connections and transactions

2001-01-26 Thread Nuno Silva
Frank Joerdens wrote: > On Thu, Jan 25, 2001 at 05:10:54PM -0300, Martin A. Marques wrote: > [ . . . ] > >> OK, lets see if we can understand what each other is saying (maybe I'm not >> getting your point here). >> Lets say browser A connects to the apache server, to a page using php code. >>

Re: [PHP] Persistent connections and transactions

2001-01-25 Thread Frank Joerdens
On Thu, Jan 25, 2001 at 05:10:54PM -0300, Martin A. Marques wrote: [ . . . ] > OK, lets see if we can understand what each other is saying (maybe I'm not > getting your point here). > Lets say browser A connects to the apache server, to a page using php code. > Lets say the code is OK (no bugs).

Re: [PHP] Persistent connections and transactions

2001-01-25 Thread Martin A. Marques
El Jue 25 Ene 2001 16:49, Frank Joerdens escribió: > On Thu, Jan 25, 2001 at 04:04:24PM -0300, Martin A. Marques wrote: > [ . . . ] > > > Of course. But the persistent connection are not working as the manuals > > say they should work. > > It appears this riddle has been solved: From a post by Ada

Re: [PHP] Persistent connections and transactions

2001-01-25 Thread Frank Joerdens
On Thu, Jan 25, 2001 at 04:04:24PM -0300, Martin A. Marques wrote: [ . . . ] > Of course. But the persistent connection are not working as the manuals say > they should work. It appears this riddle has been solved: From a post by Adam Lang on pgsql-php on Dec 8: Well, there's a problem with

Re: [PHP] Persistent connections and transactions

2001-01-25 Thread Martin A. Marques
El Jue 25 Ene 2001 14:34, Frank Joerdens escribió: > On Thu, Jan 25, 2001 at 11:18:49AM -0300, Martin A. Marques wrote: > [ . . . ] > > > No, and thats why in the postgres list we talked about persistent > > connections not having much benefits. That is because the connection is > > persistent to

Re: [PHP] Persistent connections and transactions

2001-01-25 Thread Frank Joerdens
On Thu, Jan 25, 2001 at 11:18:49AM -0300, Martin A. Marques wrote: [ . . . ] > No, and thats why in the postgres list we talked about persistent connections > not having much benefits. That is because the connection is persistent to the > httpd child that called it and not to all. Well, yes, bu

Re: [PHP] Persistent connections and transactions

2001-01-25 Thread Martin A. Marques
El Jue 25 Ene 2001 10:21, Frank Joerdens escribió: > On the PostgreSQL lists there has been some discussion recently as to > the mechanism behind, benefits and drawbacks, of persistent connections. > In particular a scenario similar to the following was brought up: > > Browser A connects to Apache

[PHP] Persistent connections and transactions

2001-01-25 Thread Frank Joerdens
On the PostgreSQL lists there has been some discussion recently as to the mechanism behind, benefits and drawbacks, of persistent connections. In particular a scenario similar to the following was brought up: Browser A connects to Apache child N, and calls a web page that calls a script which iss