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