Re: Accessing PostgreSQL through Apache and PHP4 on Linux

Поиск
Список
Период
Сортировка
От Andrew Gould
Тема Re: Accessing PostgreSQL through Apache and PHP4 on Linux
Дата
Msg-id 20011018183421.94512.qmail@web13402.mail.yahoo.com
обсуждение исходный текст
Ответ на Accessing PostgreSQL through Apache and PHP4 on Linux  ("Holt, Jack C." <JACK.C.HOLT@saic.com>)
Ответы Re: Accessing PostgreSQL through Apache and PHP4 on Linux
Список pgsql-general
It looks like PHP was compiled without the PostgreSQL
option.  I know that Caldera's and Slackware's PHP
packages do not support PostgreSQL by default.
SuSE's does; but I'm not sure about RedHat's.

Best of luck,

Andrew

--- "Holt, Jack C." <JACK.C.HOLT@saic.com> wrote:
> I am running PostgreSQL 7.1.3, RedHat 7.1 (kernel
> 2.4.2-2), and
> PHP/4.0.4pl1.  When I try to run a PHP page found
> below I get an error that
> says:
>
> Fatal error: Call to undefined function:
> pg_connect() in
> /var/www/html/psolver.php on line 10
>
> Additionally, even though pgsql.so IS in
> /usr/lib/php4 (and php.ini tells
> PHP to look there for extensions), I get the
> following error on the call to
> dl().
>
> Warning: Unable to load dynamic library
> '/usr/lib/php4/pgsql.so' - libpq.so:
> cannot load shared object file: No such file or
> directory in
> /var/www/html/psolver.php on line 7
>
> Code snippet:
>
----------------------------------------------------------------------------
> -------------------
> <?
>   dl("pgsql.so");
>
>   //connect to database
>   $conn = pg_connect("","","","psolver");
>   if(!$conn) {
>     print("Couldn't connect to psolver");
>     exit;
>   }
> ?>
>


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

В списке pgsql-general по дате отправления:

Предыдущее
От: t.ngockhoi@bpf.vnu.com
Дата:
Сообщение: Can not input large text data
Следующее
От: wsheldah@lexmark.com
Дата:
Сообщение: Re: [OT] Accessing PostgreSQL through Apache and PHP4