Received: from vega.uli.it (root@vega.uli.it [62.212.0.2]) by hub.org (8.8.8/8.7.5) with ESMTP id WAA28241 for ; Thu, 10 Sep 1998 22:31:13 -0400 (EDT) Received: from orlandi.com (nabla.xt.net [62.212.0.41]) by vega.uli.it (8.9.1/8.8.8) with ESMTP id EAA08005 for ; Fri, 11 Sep 1998 04:31:10 +0200 X-ULI-Msg-1: This message passed thru Utility Line Italia (www.uli.it) X-ULI-Msg-2: Our policies forbids every kind of SPAM. To report abuses or for any related question, please contact abuse(at)uli.it. Message-ID: <35F88B6E.7F0D9944@orlandi.com> Date: Fri, 11 Sep 1998 04:31:10 +0200 From: Daniele Orlandi Organization: Utility Line Italia X-Mailer: Mozilla 4.06 [en] (WinNT; U) MIME-Version: 1.0 To: PGsql Subject: Re: [SQL] connecting with password References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Eric McKeown wrote: > > Is there any way to set up special password protections for a Postgres > database, so that I can force someone to present a username and password > when connecting from a PHP script? I've combed the docs for something on > this, and I may just be completely off base on the feasibility. > > Comments appreciated... I use this to connect with username/password: $conn=pg_pconnect("host=localhost dbname=db user=me password=foobar"); Not very documented, found with a bit of luck.... Bye! -- Daniele ------------------------------------------------------------------------------- "On the Internet, no one knows you're using Windows NT" (Submitted by Ramiro Estrugo, restrugo@fateware.com) ------------------------------------------------------------------------------- Se telecom italia aggiungesse uno scatto al giorno ad ogni abbonato, dal primo Gennaio avrebbe rubato 803.726.000.000 Lire. ------------------------------------------------------------------------------- Daniele Orlandi - Utility Line Italia - http://www.orlandi.com Via Mezzera 29/A - 20030 - Seveso (MI) - Italy -------------------------------------------------------------------------------