X-Original-To: pgsql-php-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 191669FA5C3 for ; Wed, 14 Jun 2006 06:51:23 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 29056-08 for ; Wed, 14 Jun 2006 06:51:14 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from projects.commandprompt.com (host-130.commandprompt.net [207.173.203.130]) by postgresql.org (Postfix) with ESMTP id 2F6FA9FA3C0 for ; Wed, 14 Jun 2006 06:51:13 -0300 (ADT) Received: from [192.168.199.109] (dsl.static81214124250.ttnet.net.tr [81.214.124.250] (may be forged)) (authenticated bits=0) by projects.commandprompt.com (8.13.6/8.13.6) with ESMTP id k5E9p6i7027446; Wed, 14 Jun 2006 02:51:09 -0700 Subject: Re: Problem when connect with pgsql From: Devrim GUNDUZ To: Gita Purnamasari Cc: pgsql-php@postgresql.org In-Reply-To: <448FCF2F.9000905@gmail.com> References: <448FCF2F.9000905@gmail.com> Content-Type: text/plain Organization: Command Prompt, Inc. Date: Wed, 14 Jun 2006 12:53:12 +0300 Message-Id: <1150278792.2665.3.camel@laptop.gunduz.org> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 (2.6.2-1.fc5.5) Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (projects.commandprompt.com [192.168.2.159]); Wed, 14 Jun 2006 02:51:12 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/11 X-Sequence-Number: 3536 Hi Gita, On Wed, 2006-06-14 at 15:56 +0700, Gita Purnamasari wrote: > I am new on pgsql-php, whe i tried my new php script to connect with > pgsql occur message : Call to undefined function pg_connect() when i > try to connect with pgsql, is there some thing to be set ? Either you haven't enabled PostgreSQL support in your php.ini, or you haven't installed pgsql extensions for PHP. The solution depends on your operating system. For example for Linux variants, install php-pgsql (or a similar name) package to enable PostgreSQL support for PHP. I'm not sure how Windows guys do that. Regards, -- The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564 PostgreSQL Replication, Consulting, Custom Development, 24x7 support Managed Services, Shared and Dedicated Hosting Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/