From: Ewald Geschwinde <postgres@cybertec.at>
To: Laukó Péter <plauko@freemail.hu>
Cc: pgsql-php@postgresql.org
Subject: Re: Connection problem
Date: Tue, 04 Dec 2001 15:54:00 +0100
Message-ID: <3C0CE388.40306@cybertec.at> (raw)
References: <freemail.20011024233612.47743@fm3.freemail.hu>
>
>
>
>The code is:
><?
>
>class DBConnection
>{
> var $con_string;
>
> function DBConnection()
> {
> $con_string = "dbname=hajnalcsillag user=lao password=abc123 host=localhost port=5432";
> $ret = pg_connect( $this->con_string );
> }
>}
>
>?>
>
it's better to do it so
$this>con_string="dbname.....";
otherwise you run into big trouble
cause
$this->con_string =>GLOBAL
$con_string=>local
PHP is nto so stble with such declarations
(real-tie experience)
Ewald
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: postgres@cybertec.at, plauko@freemail.hu
Subject: Re: Connection problem
In-Reply-To: <3C0CE388.40306@cybertec.at>
References: <freemail.20011024233612.47743@fm3.freemail.hu> <3C0CE388.40306@cybertec.at>
* 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