X-Original-To: pgsql-php@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 963C94761C0 for ; Mon, 31 Mar 2003 11:47:53 -0500 (EST) Received: from mail.computer-systeme.de (unknown [62.145.19.133]) by postgresql.org (Postfix) with ESMTP id DC31A476141 for ; Mon, 31 Mar 2003 11:47:49 -0500 (EST) Received: from computer-systeme.de (pD951764D.dip.t-dialin.net [217.81.118.77]) by mail.computer-systeme.de (Postfix) with ESMTP id 26D56BF6A for ; Mon, 31 Mar 2003 18:47:54 +0200 (CEST) Message-ID: <3E887214.2050008@computer-systeme.de> Date: Mon, 31 Mar 2003 18:51:32 +0200 From: Philipp Ottlinger Organization: Computer & Systeme GmbH, Berlin User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en, de, ja, zh MIME-Version: 1.0 To: Postgres Liste Subject: Re: function not valid References: <00ad01c2f771$c4540140$a6f0cda7@informatika.lipi.go.id> In-Reply-To: <00ad01c2f771$c4540140$a6f0cda7@informatika.lipi.go.id> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-43.5 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,RCVD_IN_NJABL,RCVD_IN_OSIRUSOFT_COM, REFERENCES,REPLY_WITH_QUOTES,SIGNATURE_LONG_SPARSE, USER_AGENT_MOZILLA_UA autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/57 X-Sequence-Number: 1969 Devi Munandar wrote: > ************************************ 1: > Warning: pg_connect() unable to connect to PostgreSQL server: FATAL 1: No > pg_hba.conf entry for host 127.1.1.0, user postgres, database pegawai in > /var/www/html/pgclass/database.inc.php on line 94 2: > > Warning: pg_exec(): supplied argument is not a valid PostgreSQL link > resource in /var/www/html/pgclass/database.inc.php on line 155 > ***************************************** 2: Did you compile PHP with postgresql-support ? 1: Furthermore you need to start and create a database - please follow the documentation of your postgresql package or see http://www.postgresql.org/docs/ After having started the database you have to adjust your local pg_hba.conf-File and restart the DB. If this operation completed successfully try to add a dumyy user, which you use in your php to connect to the DB. Yours, Philipp -- Philipp Ottlinger cS Computer & Systeme GmbH Menckenstr. 29 12169 Berlin Tel. +49-30-79748317 Fax +49-30-7226748 E-Mail:ottlinger@computer-systeme.de