Search Postgresql Archives

Re: PostgreSQL connect error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



devi wrote:
Hi Friends,
I wrote a sample php program that connects to PostgreSQL DB. ==> I was able to run the PHP program from the command prompt as postgres user & not as anyother user
        $ php pgsql.php
==> I was not able execute the same file from the web browser. FATAL ERROR- undefined function pg_connect(). How to resolve this issue? Please help.


wild guess says, compare your PATH and other key environment variables (such as LD_LIBRARY_PATH) while logged in as postgres vs your other user... adjust the path of this other user to suit.

--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux