Re: [PHP4BETA] Sorry to many clients?

From: Date: Thu, 09 Sep 1999 18:39:03 +0000
Subject: Re: [PHP4BETA] Sorry to many clients?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-4124@lists.php.net to get a copy of this message
Dragos Roua wrote: > > I am using php4beta2 with apache 1.3.4 and postgreSQL 6.5. After several days > of working like a charm, my application send me a message like Sorry to many > clients already in page.php, and the connection with the database is not done. how many persistent connection did you set in php.ini ? > i'm using pg_pconnect and at one 'ps aux' i can see several conections opened > to the databse even nobody is doing nothing with the scripts. right, those are the p connections :) > what i'm asking is: > if i use pg_pconnect i must use it only once at the beggining and then pass in > some way the link id to the rest of database driven pages? nope, at the time a connection to postgres backend is requested, php looks first for an available lingering one, only if you have used same username & password. > currently i use > pg_pconenct in any page (I feel some way that this is not good isn't it?) it's just okay, you are sharing the persistent connection among connection requests from any page. that's all I can figure. -- CIMPOESU Teodor, Web Programmer @ DIGICOM S.A. Bucharest, Romania @ Internet, site development @ teo@digiro.net,+(401)-330.47.28 official home page ~ http://www.digiro.net/ Internet web page ~ http://internet.digiro.net/

« previous php.version4 (#4124) next »