pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Travel Jadoo <jadoo@xs4all.nl>
To: pgsql-php@postgresql.org
Subject: pg_connect
Date: 01 Mar 2003 12:12:36 +0100
Message-ID: <1046517155.19307.54.camel@localhost> (raw)

I know connecting should be easy but I am foxed why I cannot seem to
connect on my local machine as http://127.0.0.1/~alf/test2.php

I tried pg_connect("host=localhost port=5432 dbname=db user=alf") and
the same without the host and port which should be sufficient.

The error I get is "Fatal error: Call to undefined function:
pg_connect()". This seems to suggest that PHP is not configured with
pgslq. However, my phpinfo() shows version = PHP 4.2.2 and configured
includes '--with-pgsql=shared' (standard installation with RedHat 8)

My /var/lib/pgsql/data/pg_hba.conf I have set as follows:
# TYPE     DATABASE    IP_ADDRESS    MASK               AUTH_TYPE 
AUTH_ARGUMENT

local      all                                          trust
host       all         127.0.0.1     255.255.255.255    trust


Any ideas what I am overlooking?

Alfred Tuinman





view thread (2+ messages)  latest in thread

Message-ID: <1046517155.19307.54.camel@localhost>
Permalink:  ../1046517155.19307.54.camel@localhost/
Also on:    postgresql.org/message-id/1046517155.19307.54.camel@localhost

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: jadoo@xs4all.nl
  Subject: Re: pg_connect
  In-Reply-To: <1046517155.19307.54.camel@localhost>
  References: <1046517155.19307.54.camel@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox