Re: Connection problem

From: Ewald Geschwinde <postgres(at)cybertec(dot)at>
To: Laukó Péter <plauko(at)freemail(dot)hu>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: Connection problem
Date: 2001-12-04 14:54:00
Message-ID: 3C0CE388.40306@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

>
>
>
>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

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Marius Andreiana 2001-12-10 09:27:56 How to manage search results?
Previous Message Stephan Szabo 2001-12-03 19:07:19 Re: persistent connections, AOLserver (Was: maybe Offtopic :