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

Re: Fatal error: Call to undefined function pg_connect()

From: Chris <dmagick(at)gmail(dot)com>
To: pgsql-php(at)postgresql(dot)org
Subject: Re: Fatal error: Call to undefined function pg_connect()
Date: 2010-05-27 22:50:55
Message-ID: 4BFEF74F.6080101@gmail.com (view raw or flat)
Thread:
Lists: pgsql-php
On 28/05/10 05:30, Steve(dot)Toutant(at)inspq(dot)qc(dot)ca wrote:
>
> Hi,
> I created a php page and the code connects to my postgres database and
> do stuff...
> that works well when launched from a browser
>
> But it doesn't from a command line
> PHP myFile.php
>
> I get this error
> Fatal error: Call to undefined function pg_connect()
>
> It seems that php.exe does not recognize postgres functions.
>
> In \ms4w\Apache\cgi-bin\php.ini I have this:
> extension=php_pgsql.dll and this dll is in \ms4w\Apache\php\ext

Any errors in apache or system logs ?

Could there be something this dll is missing? I don't know much about 
windows unfortunately but this may help figure out what else you need to 
include:

http://www.dependencywalker.com/

-- 
Postgresql & php tutorials
http://www.designmagick.com/


In response to

pgsql-php by date

Next:From: Andrew McMillanDate: 2010-05-27 23:19:15
Subject: Re: Fatal error: Call to undefined function pg_connect()
Previous:From: Steve.ToutantDate: 2010-05-27 19:30:35
Subject: Fatal error: Call to undefined function pg_connect()

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