Received: from gecko.statsol.com (gecko.statsol.com [198.11.51.133]) by hub.org (8.8.8/8.7.5) with ESMTP id AAA25544; Wed, 24 Jun 1998 00:21:35 -0400 (EDT) Received: from statsol.com (oak-alg-gw4-37.ncal.verio.com [207.21.138.228]) by gecko.statsol.com (8.9.0/8.9.0) with ESMTP id AAA29250; Wed, 24 Jun 1998 00:21:19 -0400 (EDT) Message-ID: <35907EF7.E8527FA7@statsol.com> Date: Tue, 23 Jun 1998 21:22:15 -0700 From: Steve Doliov Organization: Statistical Solutions X-Mailer: Mozilla 4.03 [en] (Win95; I) MIME-Version: 1.0 To: pgsql-novice@postgresql.org CC: pgsql-interfaces@postgresql.org Subject: newbie question about PHP Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit i am trying to connect to a database using webpages with embedded php3.0 postmaster is running with the -i option the database is running with the -u option the web user is nobody, and user nobody has select privileges on the given database. from the shell, i can access the database as user nobody $ psql -u mydatabase Username: nobody Password: xxxx mydatabase=> --------------- this is what resulting page says: Warning: Unable to connect to PostgresSQL server: User authentication failed in /home1/s/statsol/public_html/test/test.phtml on line 21 An error occurred. my user=,password= is obviously a hack, i am just looking for how to specify it for the pgoptions part of the pg_connect; help with the syntax would be much appreciated. thanks, steve doliov