php - pgsql connection

From: Sebestyen Zoltan <szoli(at)netvisor(dot)hu>
To: PostgreSQL general mailinglist <pgsql-general(at)postgreSQL(dot)org>
Subject: php - pgsql connection
Date: 1999-10-15 14:52:34
Message-ID: Pine.LNX.4.04.9910151649210.8785-100000@linux.intranet.netvisor.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I know it's not a PHP3 mailinglist but the question is somewhat related
to pgsql.
I would like to know what's the problem with following line:
$dbConn = pg_Connect( " host=$host user=$user password=$password port=$port dbname=$dbname");

The php variables are filled with the appropriate values.
However, I always get the following error:

Warning: Unable to connect to PostgresSQL server: connectDB() -- connect
() failed: Can't assign requested address Is the postmaster running (with
-i) at 'localhost' and accepting connections on TCP/IP port 'dbname='? in
/usr/users/szoli/public_html/guestbook.php3 on line 61

Thanks in advance

--------------------------------------------------------------------------------
Sebestyén Zoltán <szoli(at)netvisor(dot)hu> I can't choose what I can't believe
That the way of life is to live and grieve
MAKE INSTALL NOT WAR 'cause I see living as a place in the sun
and the world as a place for a kingdom to come

I use UNIX because reboots are for hardware upgrades.

Kick me! Whip me!! Make me develop on AIX!!!

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bill Atwood 1999-10-15 15:36:37 subscribe
Previous Message Andy Lewis 1999-10-15 14:52:11 BIG Data and Perl