Re: Pg_connect in PHP - Mailing list pgsql-general

From Sergio A. Kessler
Subject Re: Pg_connect in PHP
Date
Msg-id SAK.2000.07.13.kkojisfd@sergio
Whole thread Raw
In response to Re: Pg_connect in PHP  (Henk van Lingen <henkvl@cs.uu.nl>)
List pgsql-general
Henk van Lingen <henkvl@cs.uu.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


pgsql-general by date:

Previous
From: Henk van Lingen
Date:
Subject: Re: Pg_connect in PHP
Next
From: Stephan Szabo
Date:
Subject: Re: is this a bug or feature?