Skip site navigation (1) Skip section navigation (2)

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$ (view raw, whole thread or download thread mbox)
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()
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


pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group