Re: Connection Error

From: John DeSoi <desoi(at)pgedit(dot)com>
To: JUAN ERNESTO FLORES BELTRAN <juanernestof(at)hotmail(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: Connection Error
Date: 2005-09-12 13:27:30
Message-ID: 3CC8386A-F17C-4ADF-8305-916B62DABF23@pgedit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php


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

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Joshua D. Drake 2005-09-12 15:15:00 Re: Connection Error
Previous Message JUAN ERNESTO FLORES BELTRAN 2005-09-12 13:06:25 question