Skip site navigation (1) Skip section navigation (2)

Re: Undefined function pg_connect()

From: Chris <dmagick(at)gmail(dot)com>
To: Gustavo Amarilla Santacruz <gusamasan(at)gmail(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: Undefined function pg_connect()
Date: 2010-01-28 00:36:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-php
Gustavo Amarilla Santacruz wrote:
> Hello, all.
> I had installed php + postgresql on Fedora12. When the php script call 
> to "pg_connect()", the following message is displayed:
> Fatal error: Call to undefined function pg_connect() in /var/www/html/ 
> ..... Call Stack: 0.0325 487160 1. {main}() ....
> What i can do?

You need the php-pgsql package if you installed via rpm.

Once you have that installed, restart apache and see how you go.

Postgresql & php tutorials

In response to


pgsql-php by date

Next:From: Devrim GÜNDÜZDate: 2010-01-28 00:40:47
Subject: Re: Undefined function pg_connect()
Previous:From: Gustavo Amarilla SantacruzDate: 2010-01-28 00:25:44
Subject: Undefined function pg_connect()

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group