Re: php4 and postgresql 8.3 - Mailing list pgsql-general

From Alan Hodgson
Subject Re: php4 and postgresql 8.3
Date
Msg-id 200903021615.38542@hal.medialogik.com
Whole thread Raw
In response to php4 and postgresql 8.3  (shadrack <shadkeene@hotmail.com>)
List pgsql-general
On Monday 02 March 2009, shadrack <shadkeene@hotmail.com> wrote:
> My basic question is...are php4 and postgresql 8.3 compatible?
> I'm running Linux Redhat 3.4.6, php4.3.9, and postgresql 8.3.  I know,
> some of those versions are old...its government, and I unfortunately
> don't have control over the version.  In fact, I don't even have root
> access right now.  But I've got projects waiting to go live if I can
> get php and postgresql to talk to each other.
> When I try to connect, I get...call to undefined function pg_connect.
> When I look in the php.ini file, there is no pgsql.so file, and in the
> extension library in /usr/lib/php4...I only see ldap.so.
> So do I need to have the IT person download the pgsql-php rpm?  Will
> that take care of this?  This might be the only option, so hoepfully
> there's something I can do.
> Or should I just push to install php5 if they let me?  Will php5 and
> postgresql work together inherently?  Or will I need to add modules to
> the initial php5 installation?
> Thanks for any help!
> Shad

I think either version can be made to work, but the problem you're going to
run into is that the vendor-supplied packages aren't compiled against
PostgreSQL 8.3.

They'd need to rebuild the PHP RPM and then install the PHP pgsql module
(for either version).

Or, they can install the vendor-supplied package, but you'd need the older
postgresql library that it was compiled against also on the system, through
a compatibility package or just hacked in manually (and appropriate
overrides provided to RPM when installing the PHP module).

--
Even a sixth-grader can figure out that you can’t borrow money to pay off
your debt

pgsql-general by date:

Previous
From: Alan Hodgson
Date:
Subject: Re: How to pipe the psql copy command to Unix 'Date' command
Next
From: Angelo Astorga
Date:
Subject: Log en Postgresql 8.1.11