Re: Pg_connect in PHP - Mailing list pgsql-general

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

>
> Anyone using PHP and WWW-authenticate ??
>
> I do:
>
> $database = pg_Connect ("host=db.example.com port=5432
>                user=$PHP_AUTH_USER password=$PHP_AUTH_PW dbname=base");
>
> That works, except when PHP_AUTH_PW contains a space. Is there a way
> to use passwords containing spaces?
>
> Regards,
>

How about:

 $database = pg_Connect ("host=db.example.com port=5432
                user=$PHP_AUTH_USER password=\"$PHP_AUTH_PW\" dbname=base");



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 by date:

Previous
From: Henk van Lingen
Date:
Subject: Pg_connect in PHP
Next
From: Henk van Lingen
Date:
Subject: Re: Pg_connect in PHP