Thread: help!!!!!!

help!!!!!!

From
"francis feh"
Date:
i work with php and postgres,but i have a problem.........when i whrite my program in php with postgres function (pg_connect for esample),the browser told me that is undefined function ,it's very strange because i compil the php source with support of pgsql (--with-pgsql)...
why can i resolve this problem
 
my email is :sisqonantu@hotmail.com
 
thanks for all

Re: help!!!!!!

From
Scott Marlowe
Date:
On Sat, 2005-03-05 at 08:09, francis feh wrote:
> i work with php and postgres,but i have a problem.........when i
> whrite my program in php with postgres function (pg_connect for
> esample),the browser told me that is undefined function ,it's very
> strange because i compil the php source with support of pgsql
> (--with-pgsql)...
> why can i resolve this problem
>

You're php install isn't finding the postgresql libs it needs.  When you
do the ./configure --with-pgsql check the output of the config run, and
you'll see something like:

checking for PostgreSQL support... no

Or similar.



Re: help!!!!!!

From
Postgres Admin
Date:
>You're php install isn't finding the postgresql libs it needs.  When you
>do the ./configure --with-pgsql check the output of the config run, and
>you'll see something like:
>
>checking for PostgreSQL support... no
>
>
>
You may want to set include flags when compiling....
CPPFLAGS=-I/usr/local/pgsql/include (or something like that)

J