Re: Can't Get PHP Going on PostgreSQL

From: Robby Russell <robby(at)planetargon(dot)com>
To: "Van Ingen, Lane" <lvaningen(at)ESNCC(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: Can't Get PHP Going on PostgreSQL
Date: 2005-03-11 02:00:49
Message-ID: 1110506449.20824.362.camel@linus
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

On Thu, 2005-03-10 at 16:08 -0500, Van Ingen, Lane wrote:
> I am new to both PHP and PostgreSQL. Trying to install PHP and PostgreSQL 8.0 on Slackware Linux 10.0.0 .
> I am getting the following error out of Apache:
> "Fatal Error: Call to undefined function: pg_connect() ...."
>
> PostgreSQL is up and running, and appears to be fine.
>
> Have found a lot of web references to this; the best was http://us2.php.net/pgsql . But am unable
> to proceed because I am not sure what to do.
>
> Facts about what I have installed:
> - Installed PHP from Slackware binary; I made no special efforts to compile it. According to a PHP utility
> function (phpinfo()), looks like it might be configured for MySQL already.
> - version info:
> PHP = 4.3.7
> Linux kernel = 2.4.26
> Apache = 1.3.31
>
> How do I find these functions and install OR configure the php.ini file?
>
> I don't think this is hard to fix, but it is beating me up right now. What I need to find a blow-by-blow of
> what to do. Can somebody help me?

You need to install with pgsql support.

in your configure:

./configure ... --with-pgsql

-Robby

--
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON | www.planetargon.com
* Portland, OR | robby(at)planetargon(dot)com
* 503.351.4730 | blog.planetargon.com
* PHP-PostgreSQL Hosting & Development
* open source solutions - web hosting
****************************************/

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Van Ingen, Lane 2005-03-11 02:57:17 Re: Can't Get PHP Going on PostgreSQL
Previous Message Gavin M. Roy 2005-03-10 21:29:43 Re: Can't Get PHP Going on PostgreSQL