Re: Call to undefined function: pg_connect()

From: maillist <maillist(at)tnss(dot)com>
To:
Cc: Postgre Admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Call to undefined function: pg_connect()
Date: 2003-08-07 07:53:55
Message-ID: 3F320593.9B9674ED@tnss.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

shreedhar wrote:
>
> Hi All,
>
> I Updated my Postgresql Server from 7.2.4 which came along with RH7.3 to
> 7.3.2. After updating I could not able to connect database through PHP. So I
> recompiled PHP4.1.2 (same version which have earlier in my system), even
> then I am not able to connect through PHP. Is there any other package has to
> be installed for this connection.
>
> Please some body help me out regarding. I am breaking my head since two
> days.
>
> Thanks for any idea.
>
> Regards,
> Sreedhar Bhaskararaju
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
the only time I have received that error message is when
/usr/lib/php4/pgsql.so was not installed on rh 9.0 installation of
server + kde + gnome. seems they didn't install php-pgsql.

to verify that your new php actualy has postgresql configured create
test file
test.php
containing
<?php
phpinfo();
?>

run php -f test.php > test.html
view test.html with browser
and verify that pgsql.so made it into the
/usr/lib/php4 directory

hope this helps, I know my gooooogle search didn't, but the other rh 9.0
install did work and the only thing i did different was to check install
every thing
hope this helps

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Bruno BAGUETTE 2003-08-07 08:25:43 RE : Oracle to PostgreSQL
Previous Message SAMTEK Consultores 2003-08-07 07:42:10 unsuscribe {Escaneado contra Virus y Spam}

Browse pgsql-general by date

  From Date Subject
Next Message Ben-Nes Michael 2003-08-07 08:51:03 Re: PostgreSql under Linux
Previous Message shreedhar 2003-08-07 07:40:24 Re: [GENERAL] Call to undefined function: pg_connect()