From: Chris <dmagick@gmail.com>
To: pgsql-php@postgresql.org
Subject: Re: Fatal error: Call to undefined function pg_connect()
Date: Fri, 28 May 2010 08:50:55 +1000
Message-ID: <4BFEF74F.6080101@gmail.com> (raw)
In-Reply-To: <OFD667D637.1D62587D-ON85257730.006AE38B-85257730.006B2BA8@isn.rtss.qc.ca>
References: <OFD667D637.1D62587D-ON85257730.006AE38B-85257730.006B2BA8@isn.rtss.qc.ca>
On 28/05/10 05:30, Steve.Toutant@inspq.qc.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/
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: dmagick@gmail.com
Subject: Re: Fatal error: Call to undefined function pg_connect()
In-Reply-To: <4BFEF74F.6080101@gmail.com>
References: <OFD667D637.1D62587D-ON85257730.006AE38B-85257730.006B2BA8@isn.rtss.qc.ca> <4BFEF74F.6080101@gmail.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