X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2D9F9D8836 for ; Mon, 12 Sep 2005 10:27:49 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28431-02 for ; Mon, 12 Sep 2005 13:27:44 +0000 (GMT) Received: from a2s4.a2hosting.com (a2s4.a2hosting.com [64.9.205.220]) by svr1.postgresql.org (Postfix) with ESMTP id 68273D86F1 for ; Mon, 12 Sep 2005 10:27:45 -0300 (ADT) Received: from user-1120cav.dsl.mindspring.com ([66.32.49.95] helo=[192.168.1.10]) by a2s4.a2hosting.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.52) id 1EEoLe-00032u-5O; Mon, 12 Sep 2005 09:27:50 -0400 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3CC8386A-F17C-4ADF-8305-916B62DABF23@pgedit.com> Cc: pgsql-php@postgresql.org Content-Transfer-Encoding: 7bit From: John DeSoi Subject: Re: Connection Error Date: Mon, 12 Sep 2005 09:27:30 -0400 To: JUAN ERNESTO FLORES BELTRAN X-Mailer: Apple Mail (2.733) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s4.a2hosting.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pgedit.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.008 required=5 tests=[AWL=0.008] X-Spam-Level: X-Archive-Number: 200509/2 X-Sequence-Number: 3242 On Sep 12, 2005, at 9:02 AM, JUAN ERNESTO FLORES BELTRAN wrote: > I am trying to develop a graphical and statistical interface wiht > PHP and Postgresql, however it seems is not possible to connect > properly to the database i have creates. Everytime i try to connect > to my database i receive the following message at the PHP interface: > > Fatal error: Call to undefined function pg_connect() in c:\Inetpub > \wwwroot\Untitled.php on line 8 > > I installed php-5.0.5-Win32.zip and PostgreSQL8.0, them both are > installed in my PC (win2000) wich have been configured as a server. > What the problem could be? Windows comes with lots of modules precompiled but they are not enabled by default. Look at your php.ini file and make sure the PostgreSQL module is enabled. You should find the line below; just remove the leading ";". ;extension=php_pgsql.dll John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL