Re: Pg_connect in PHP
От | Vince Vielhaber |
---|---|
Тема | Re: Pg_connect in PHP |
Дата | |
Msg-id | Pine.BSF.4.21.0007131049510.6457-100000@paprika.michvhf.com обсуждение исходный текст |
Ответ на | Re: Pg_connect in PHP (Henk van Lingen <henkvl@cs.uu.nl>) |
Ответы |
Re: Pg_connect in PHP
|
Список | pgsql-general |
On Thu, 13 Jul 2000, Henk van Lingen wrote: > 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?). Try single quotes: password='$PHP_AUTH_PW' Vince. -- ========================================================================== Vince Vielhaber -- KA8CSH email: vev@michvhf.com http://www.pop4.net 128K ISDN from $22.00/mo - 56K Dialup from $16.00/mo at Pop4 Networking Online Campground Directory http://www.camping-usa.com Online Giftshop Superstore http://www.cloudninegifts.com ==========================================================================
В списке pgsql-general по дате отправления: