Fatal error: Call to undefined function pg_connect()

Поиск
Список
Период
Сортировка
От Steve.Toutant@inspq.qc.ca
Тема Fatal error: Call to undefined function pg_connect()
Дата
Msg-id OFD667D637.1D62587D-ON85257730.006AE38B-85257730.006B2BA8@isn.rtss.qc.ca
обсуждение исходный текст
Ответы Re: Fatal error: Call to undefined function pg_connect()  (Chris <dmagick@gmail.com>)
Re: Fatal error: Call to undefined function pg_connect()  (Andrew McMillan <andrew@morphoss.com>)
Список pgsql-php

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

PATH variable contains this
C:\Program Files\PostgreSQL\8.3\bin;



phpinfo() launched via a browser give me this

This command php -i from a command prompt doesn't return any pgsql extension

What should I do to be able to call the postgres functions when using php.exe from a command line?

thanks

steve



Вложения

В списке pgsql-php по дате отправления:

Предыдущее
От: Andrew McMillan
Дата:
Сообщение: Re: pcntl_fork() and database concurrency
Следующее
От: Chris
Дата:
Сообщение: Re: Fatal error: Call to undefined function pg_connect()