Skip site navigation (1) Skip section navigation (2)

Re: [PHP] Some undefined function errors

From: Jim Lucas <lists(at)cmsws(dot)com>
To: Giancarlo Boaron <gboaron(at)yahoo(dot)com(dot)br>
Cc: pgsql-general(at)postgresql(dot)org, php-general(at)lists(dot)php(dot)net, pgsql-novice(at)postgresql(dot)org
Subject: Re: [PHP] Some undefined function errors
Date: 2010-05-20 16:04:19
Message-ID: 4BF55D83.7050906@cmsws.com (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-novice
Giancarlo Boaron wrote:
> Hi all.
> 
> Recently, I wrote an email about the problem I was having with some Postgres functions that when those functions were called, I received the following error: "Call to undefined function <function_name>".
> 
> After some answers, I decided to rebuild a brand new linux virtual machine with Apache + PHP + Postgres, but I still get this annoying error messege with some functions like pg_prepare() and pg_escape_string().
> 
> I compiled Postgres with --without-readline option.
> I compiled PHP with --with-apxs2=/usr/local/apache2/bin/apxs and --with-pgsql=/usr/local/pgsql/
> 
> And the compilation process has no errors.
> 
> What am I doing wrong? Do I have to change something in php_config.h file? If so, what do I have to change?
> 
> Thank you.
> 
> 
>       
> 

Depending on what version of apache you are running, you need to make sure that
you are loading the pgsql.so file or have the psql.ini file in your
/var/www/conf/php5/ directory.

This way it knows to load pg.

-- 
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare

In response to

Responses

pgsql-novice by date

Next:From: Giancarlo BoaronDate: 2010-05-20 16:21:08
Subject: Re: [PHP] Some undefined function errors
Previous:From: FernandoDate: 2010-05-20 15:08:32
Subject: Re: [PHP] Some undefined function errors

pgsql-general by date

Next:From: Giancarlo BoaronDate: 2010-05-20 16:10:57
Subject: Re: [PHP] Some undefined function errors
Previous:From: Gurjeet SinghDate: 2010-05-20 15:55:12
Subject: Re: setting contrib lo visible to all schemas

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group