Re: Fatal error: Call to undefined function pg_connect()
Chris <[email protected]> Fri, 28 May 2010 08:50:55 +1000
| Newsgroups | gmane.comp.db.postgresql.php |
|---|---|
| Message-ID | <[email protected]> |
On 28/05/10 05:30, [email protected] 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/ -- Sent via pgsql-php mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-php