How to connect using pg_connect function from php3 ?

From: "Luiz Antonio" <luiz(at)supersoft(dot)com(dot)br>
To: <pgsql-general(at)postgresql(dot)org>
Subject: How to connect using pg_connect function from php3 ?
Date: 2000-04-26 17:28:49
Message-ID: 000501bfafa4$e2be8fa0$5101a8c0@supersoft.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello list!!!
I´ve installed the postgresql 6.5.2-2cl.i386.rpm, the postgresql-devel, the
postgresql-client and postgresql-lib. After, I created the user postmaster
and the user nobody.
I did a php3 script using the next line:
$conn = pg_connect("localhost", "5432", "", "", "ss"),
but didn´t get to do it work and I had the next warning:
Warning: Unable to connect to PostgresSQL server: connectDB() -- connect()
failed:
Is the postmaster running (with -i) at 'localhost' and accepting connections
on TCP/IP port '5432'? in
/home/httpd/html/postgresql/multi.php3 on line 14

Does anybody know how can I do it?
Do I need to change any name of the last parameters that I am using? Do I
need to add others?

If somebody could help me...thanks!!!

Luiz Antonio

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Charles Tassell 2000-04-26 18:06:19 Re: pgsql DATE
Previous Message Jan Wieck 2000-04-26 17:26:36 Re: Rounding/create C function question