X-Original-To: pgsql-php@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D04CC47610C for ; Mon, 31 Mar 2003 12:01:17 -0500 (EST) Received: from enterprise.centliq.com (adsl-65-71-224-185.dsl.rcsntx.swbell.net [65.71.224.185]) by postgresql.org (Postfix) with ESMTP id 1AF824760E3 for ; Mon, 31 Mar 2003 12:01:17 -0500 (EST) Received: from centennialwines.com (unknown [192.168.1.2]) by enterprise.centliq.com (Postfix) with ESMTP id 368F8FF038; Mon, 31 Mar 2003 09:58:57 -0600 (CST) Message-ID: <3E887414.1030105@centennialwines.com> Date: Mon, 31 Mar 2003 11:00:04 -0600 From: "David C. Brown" User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Devi Munandar Cc: pgsql-php@postgresql.org 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=-34.8 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES,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/58 X-Sequence-Number: 1970 It seems you do not have PostgreSQL configured correctly. This is the key. 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 It seems you need to edit your pg_hba.conf to allow 127.1.1.0 permission to connect. Once you have it corrected you should restart PostgreSQL, then try again. As for the other warnings, you will get them once php fails to connect because the failure caused the link resource (connection to the database) to be invalid. Dave Devi Munandar wrote: >hi..all > >I've install postgresql 7.2.2 on redhat linux 8.0, i've tried connect >postgres pass through from client with php, but i got some problem with >argument ar function like this; > >************************************ >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 > >Warning: pg_exec(): supplied argument is not a valid PostgreSQL link >resource in /var/www/html/pgclass/database.inc.php on line 155 > >Warning: pg_numfields(): supplied argument is not a valid PostgreSQL result >resource in /var/www/html/pgclass/database.inc.php on line 384 > >Warning: pg_fetch_row(): supplied argument is not a valid PostgreSQL result >resource in /var/www/html/pgclass/database.inc.php on line 256 >***************************************** > >and I think I need some postgresql function, so what can I do..?, if I need >to install this argument...how the way...? > > >Best Regards, > >--devi munandar > > >---------------------------(end of broadcast)--------------------------- >TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org > > >