Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8821B475D17 for ; Fri, 27 Dec 2002 04:16:17 -0500 (EST) Received: from mail.belbone.be (mail.belbone.be [195.13.1.3]) by postgresql.org (Postfix) with ESMTP id 31345474E53 for ; Fri, 27 Dec 2002 04:16:16 -0500 (EST) Received: from oracle (oracle.belbone.be [192.168.6.57]) by mail.belbone.be (8.12.5/8.12.5) with ESMTP id gBR9GFDZ012768; Fri, 27 Dec 2002 10:16:15 +0100 (MET) Subject: Re: pg_pconnect From: GOLDBERG To: sector119@mail.ru Cc: pgsql-php@postgresql.org In-Reply-To: <20021227090902.GA2637@city.gov.te.ua> References: <20021227090902.GA2637@city.gov.te.ua> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution/1.0.2-5mdk Date: 27 Dec 2002 10:16:32 +0100 Message-Id: <1040980592.2639.28.camel@oracle> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/63 X-Sequence-Number: 1738 Not a problem with postgres or php : it is always stateless. Le ven 27/12/2002 =E0 10:09, sector119@mail.ru a =E9crit : > Hi >=20 > echo "\n";=20 > $db =3D pg_pconnect("dbname=3D$dbname user=3D$user password=3D$dbpassword= "); > if (!$db) > echo "Connection can not be established!
\n"; > else > echo "Connection established!
\n"; > echo "next screen
"; > echo ""; > ?> >=20 > echo "\n";=20 > if ($db)=20 > echo "db handler is still valid!
\n";=20 > else=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 > echo "db handler does not exist anymore!
\n";=20 > echo ""; > ?>=20 >=20 >=20 > when I click on next screen link I get db handler does not exist anymore!= why???=20 >=20 > --=20 > WBR, sector119 >=20 > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster >=20