Re: Trying to connect to PostgreSQL
| From: | Matt McClanahan | Date: | Sat, 15 Jul 2000 03:55:54 +0000 |
| Subject: | Re: Trying to connect to PostgreSQL | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-1159@lists.php.net to get a copy of this message | ||
On Fri, 14 Jul 2000, Andreas Sheriff wrote:
> I'm trying to make a simple connection to a PostgreSQL database using
> pg_connect, but I get this error when I access the page:
>
> Fatal error: Call to undefined function: pg_connect()
>
> What am I doing wrong?
>
> Is it that I didn't specify --with-mysql when I configured the source?
Well, PostgreSQL isn't MySQL. The parameter you want is --with-pgsql, or
--with-pgsql=/path/to/postgres base install directory.
From the top directory of the PHP4 source tree, run ./configure --help
Matt