X-Original-To: pgsql-php@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id EA7C2474E4F for ; Sat, 1 Mar 2003 06:08:53 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 78310-07 for ; Sat, 1 Mar 2003 06:08:53 -0500 (EST) Received: from localhost.localdomain (a80-126-93-225.adsl.xs4all.nl [80.126.93.225]) by postgresql.org (Postfix) with ESMTP id 7031F474E44 for ; Sat, 1 Mar 2003 06:08:52 -0500 (EST) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h21BCbOl019693 for ; Sat, 1 Mar 2003 12:12:37 +0100 Received: (from alfred@localhost) by localhost.localdomain (8.12.5/8.12.5/Submit) id h21BCaB1019691 for pgsql-php@postgresql.org; Sat, 1 Mar 2003 12:12:36 +0100 X-Authentication-Warning: localhost.localdomain: alfred set sender to jadoo@xs4all.nl using -f Subject: pg_connect From: Travel Jadoo To: pgsql-php@postgresql.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Message-Id: <1046517155.19307.54.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 01 Mar 2003 12:12:36 +0100 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200303/2 X-Sequence-Number: 1914 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