Received: from viefep12-int.chello.at (viefep12-int.chello.at [213.46.255.25]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fB4Espm88797 for ; Tue, 4 Dec 2001 09:54:51 -0500 (EST) (envelope-from postgres@cybertec.at) Received: from cybertec.at ([213.47.122.226]) by viefep12-int.chello.at (InterMail vM.5.01.03.06 201-253-122-118-106-20010523) with ESMTP id <20011204145448.CUHQ1239.viefep12-int.chello.at@cybertec.at>; Tue, 4 Dec 2001 15:54:48 +0100 Message-ID: <3C0CE388.40306@cybertec.at> Date: Tue, 04 Dec 2001 15:54:00 +0100 From: Ewald Geschwinde User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.6) Gecko/20011120 X-Accept-Language: en-us MIME-Version: 1.0 To: =?ISO-8859-2?Q?Lauk=F3=20P=E9ter?= CC: pgsql-php@postgresql.org Subject: Re: Connection problem References: Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200112/3 X-Sequence-Number: 778 > > > >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