pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: scott.marlowe <scott.marlowe@ihs.com>
To: Carlos <almah@wanadoo.es>
Cc: Lista PostgreSQL <pgsql-php@postgresql.org>
Subject: Re: can't connect to a postgreSQL database from PHP
Date: Mon, 12 Aug 2002 09:40:22 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0208120937520.5407-100000@css120.ihs.com> (raw)
In-Reply-To: <001a01c2413a$1b24cb60$cb11a8c0@almah>

On Sun, 11 Aug 2002, Carlos wrote:

> HelpHi everybody!
> 
> I've got a problem using PHP to connect to a postgre database, it seems that
> the function for postgre are not recognized or something like that because a
> I get the following error in the web navigator:
> "Fatal Error: Calling to undefined function pg_connect() ...)"
> 
> I configured php with: ./configure --with-apache=/usr/local/apache_1.3.26
>                                                  --with-pgsql=shared
>                                                  --enable-track-vars
>                                                 --with-xml

Why do you have --with-pgsql=shared?  Normally, you just need the switch 
--with-pgsql.

when you ran the ./configure script, did you save the output and see 
whether it said it found and configured postgresql?  My bet is that it 
failed during ./configure and you didn't notice, as it won't cause the 
./configure script to error out.

Also, I'd recommend compiling apache for DSO support, i.e. using the 
--with-apxs switch setting.  I've seen problems show up with using the .a 
libs instead of .so.  Since shared objects seems the preferred 
methodology, it seems like problems with configuration that affect dso get 
fixed much quicker than static libs.




view thread (3+ messages)

Message-ID: <Pine.LNX.4.33.0208120937520.5407-100000@css120.ihs.com>
Permalink:  ../Pine.LNX.4.33.0208120937520.5407-100000@css120.ihs.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0208120937520.5407-100000@css120.ihs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: scott.marlowe@ihs.com, almah@wanadoo.es
  Subject: Re: can't connect to a postgreSQL database from PHP
  In-Reply-To: <Pine.LNX.4.33.0208120937520.5407-100000@css120.ihs.com>
  References: <001a01c2413a$1b24cb60$cb11a8c0@almah> <Pine.LNX.4.33.0208120937520.5407-100000@css120.ihs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox