Re: Call to undefined function: pg_connect().

From: Devrim GUNDUZ <devrim(at)gunduz(dot)org>
To: alagu raj <alaguraj_v(at)yahoo(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: Call to undefined function: pg_connect().
Date: 2004-10-12 06:28:33
Message-ID: Pine.LNX.4.61.0410120927500.29038@emo.org.tr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

On Mon, 11 Oct 2004, alagu raj wrote:

> i was running postgresql-7.4.2 and php-4.3.7 and
> apache-2.0.49 on RH-7.3. but the php script is unable
> to connect tp pgsql.
>
> <? php
> $connect=pg_connect("host=localhost port=5432
> dbname=DATABASENAME");
> ?>
>
> this shows error as: Fatal error: Call to undefined
> function: pg_connect().

Install php-pgsql rpm and restart Apache.

Regards,

- --
Devrim GUNDUZ
devrim~gunduz.org devrim.gunduz~linux.org.tr
http://www.tdmsoft.com
http://www.gunduz.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBa3mTtl86P3SPfQ4RAqRPAKDAl4s1kSe/707Pp9ybToMYOC6UDgCeLpra
lHI+AH3ITSQleYX4Y3VtIk0=
=bvue
-----END PGP SIGNATURE-----

In response to

Browse pgsql-php by date

  From Date Subject
Next Message hsgill 2004-10-27 04:07:25
Previous Message alagu raj 2004-10-12 06:12:28 Call to undefined function: pg_connect().