pg_connect

From: Travel Jadoo <jadoo(at)xs4all(dot)nl>
To: pgsql-php(at)postgresql(dot)org
Subject: pg_connect
Date: 2003-03-01 11:12:36
Message-ID: 1046517155.19307.54.camel@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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

Browse pgsql-php by date

  From Date Subject
Next Message ryanne cruz 2003-03-07 05:11:04 Re: querying from 3 tables
Previous Message Kelvin Varst 2003-03-01 10:17:18 MD5 and passwords