[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PostgreSQL and PHP



Nevermind.  I figured it out.  I need to be running PHP 4.2 or later.

Sorry for cluttering the list.


On Wed, 2003-05-21 at 19:14, Stephen Hargrove wrote:
> I think I'm either missing a package or I have something funkified in my
> config(s) somewhere.
> 
> I've installed the following packages on my system:
> 
> libpgsql2					install
> php4-pear					install
> php4-pgsql					install
> postgresql					install
> postgresql-client				install
> postgresql-contrib				install
> postgresql-dev					install
> postgresql-doc					install
> 
> Whenever I try to connect to PostgreSQL, I get the following error:
> 
> Fatal error: Call to undefined function: pg_query() in
> /var/www/common.functions.php on line 8
> 
> A call to phpinfo shows that Debian's PHP was compiled --without-pgsql. 
> However, it shows the following:
> 
> -------------
> PostgreSQL Support enabled
> Active Persistent Links 0
> Active Links 0
> Directive         Local Value     Master Value
> pgsql.allow_persistent On            On
> pgsql.max_links        Unlimited     Unlimited
> pgsql.max_persistent   Unlimited     Unlimited
> 
> POSTGRES_INCLUDE /usr/include/pgsql
> _ENV["POSTGRES_INCLUDE"] /usr/include/pgsql
> -------------
> 
> /usr/include/pgsql did not exist, but /usr/include/postgresql did, so I
> created a symlink.
> 
> If anyone has any thoughts or suggestions, I'd appreciate it.  I'm sure
> I'm missing something obvious.
> 
> Thanks.
-- 
steve
 ___________________________________________________
|                                                   |
| There's a difference between being grumpy and     |
| hating every little fucker in existence.          |
|                                                   |
| http://monticello.biz     : technology that works |
| http://exitwound.org      : hard to find          |
| http://buckowensfan.com   : he's the man          |
 ---------------------------------------------------

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: