| From: | Henk van Lingen <henkvl(at)cs(dot)uu(dot)nl> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Pg_connect in PHP |
| Date: | 2000-07-13 15:22:45 |
| Message-ID: | Pine.LNX.4.21.0007131720400.4788-100000@sarastro.cs.uu.nl |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Thu, 13 Jul 2000, Vince Vielhaber wrote:
> > > 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?).
>
> Try single quotes: password='$PHP_AUTH_PW'
That works!
I thought that wouldn't work because PHP doesn't substitute variables
between single quotes :-(
Thanx,
--
+-----------------------------------------------------------------------+
| Henk van Lingen, Systems Administrator, <henkvl(at)cs(dot)uu(dot)nl> |
| Dept. of Computer Science, Utrecht University. phone: +31-30-2535278 |
+----------------- http://www.cs.uu.nl/people/henkvl/ ------------------+
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Sergio A. Kessler | 2000-07-13 15:32:00 | Re: Pg_connect in PHP |
| Previous Message | Vince Vielhaber | 2000-07-13 14:50:37 | Re: Pg_connect in PHP |