For Programmers: Free Programming Magazines  


Home > Archive > PHP on Windows > July 2004 > Re: [PHP-WIN] [pgsql] connectivity problems









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-WIN] [pgsql] connectivity problems
Luis Moreira

2004-07-26, 9:00 am

Hi

I suppose yopu didn't "google" for the error message...
Try to read this
http://www.postgresql.org/docs/7.3/...entication.html

Luis

Ciprian Constantinescu wrote:

>I have the following code
>
>
code:
><?php >$dbconn3 = pg_connect("host=somehost port=5432 dbname=adatabase >user=postgres"); >?> >

>
>And when i run the script I get " Warning: pg_connect()
>[function.pg-connect]: Unable to connect to PostgreSQL server: FATAL:
>missing or erroneous pg_hba.conf file"
>
>I have searched for pg_hba.conf, but I don't have it. Where should it be and
>what should it contain?
>
>
>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com