Re: Pg_connect in PHP

From: "Sergio A(dot) Kessler" <sak(at)tribctas(dot)gba(dot)gov(dot)ar>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Pg_connect in PHP
Date: 2000-07-13 15:32:00
Message-ID: SAK.2000.07.13.kkojisfd@sergio
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Henk van Lingen <henkvl(at)cs(dot)uu(dot)nl> el día Thu, 13 Jul 2000 16:25:40 +0200
(CEST), escribió:

> > How about:
> >
> > $database = pg_Connect ("host=db.example.com port=5432
> > user=$PHP_AUTH_USER password=\"$PHP_AUTH_PW\"
dbname=base");
>
>It seems, that doesn't work. Database complaining about authentication
>failure (it things the quote is part of the password, I think?).

yup, postgres uses ' instead of ", try with ' (single quote)

$database = pg_Connect ("host=db.example.com port=5432
user=$PHP_AUTH_USER password='$PHP_AUTH_PW' dbname=base");

sergio

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2000-07-13 15:53:21 Re: is this a bug or feature?
Previous Message Henk van Lingen 2000-07-13 15:22:45 Re: Pg_connect in PHP