Re: Pg_connect in PHP - Mailing list pgsql-general

From Henk van Lingen
Subject Re: Pg_connect in PHP
Date
Msg-id Pine.LNX.4.21.0007131624270.4788-100000@sarastro.cs.uu.nl
Whole thread Raw
In response to Re: Pg_connect in PHP  (Vince Vielhaber <vev@michvhf.com>)
Responses Re: Pg_connect in PHP
Re: Pg_connect in PHP
List pgsql-general
On Thu, 13 Jul 2000, Vince Vielhaber wrote:

  > > That works, except when PHP_AUTH_PW contains a space. Is there a way
  > > to use passwords containing spaces?
  > >
  >
  > 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?).

Regards,
--
+-----------------------------------------------------------------------+
| Henk van Lingen, Systems Administrator,             <henkvl@cs.uu.nl> |
| Dept. of Computer Science, Utrecht University.  phone: +31-30-2535278 |
+----------------- http://www.cs.uu.nl/people/henkvl/ ------------------+


pgsql-general by date:

Previous
From: Vince Vielhaber
Date:
Subject: Re: Pg_connect in PHP
Next
From: Travis Bauer
Date:
Subject: postmaster crashing the server in 7.0.2