pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: GOLDBERG <jcg@belbone.be>
To: sector119@mail.ru
Cc: pgsql-php@postgresql.org
Subject: Re: pg_pconnect
Date: 27 Dec 2002 10:16:32 +0100
Message-ID: <1040980592.2639.28.camel@oracle> (raw)
In-Reply-To: <20021227090902.GA2637@city.gov.te.ua>
References: <20021227090902.GA2637@city.gov.te.ua>

Not a problem with postgres or php : it is always stateless.

Le ven 27/12/2002 à 10:09, sector119@mail.ru a écrit :
> Hi
> 
> <? 
> echo "<html><body>\n"; 
> $db = pg_pconnect("dbname=$dbname user=$user password=$dbpassword");
> if (!$db)
> echo "Connection can not be established!<br>\n";
> else
> echo "Connection established!<br>\n";
> echo "<a href=\"cursor4.php\">next screen</a><br>";
> echo "</body></html>";
> ?>
> 
> <? 
> echo "<html><body>\n"; 
> if ($db) 
> echo "db handler is still valid!<br>\n"; 
> else                                        
> echo "db handler does not exist anymore!<br>\n"; 
> echo "</body></html>";
> ?> 
> 
> 
> when I click on next screen link I get db handler does not exist anymore! why??? 
> 
> -- 
> WBR, sector119
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
> 





view thread (26+ messages)  latest in thread

Message-ID: <1040980592.2639.28.camel@oracle>
Permalink:  ../1040980592.2639.28.camel@oracle/
Also on:    postgresql.org/message-id/1040980592.2639.28.camel@oracle

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: jcg@belbone.be, sector119@mail.ru
  Subject: Re: pg_pconnect
  In-Reply-To: <1040980592.2639.28.camel@oracle>
  References: <20021227090902.GA2637@city.gov.te.ua> <1040980592.2639.28.camel@oracle>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox