Re: Edward

From: Richard Huxton <dev(at)archonet(dot)com>
To: ejos(at)epca(dot)com(dot)ve, pgsql-general(at)postgresql(dot)org
Subject: Re: Edward
Date: 2003-09-29 15:34:05
Message-ID: 200309291634.05417.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Monday 29 September 2003 14:41, ejos(at)epca(dot)com(dot)ve wrote:
> Hi!, First i'm a beginner working with php. And i've a problem working
> with that and postgresql of course, i cann't connect both.
> I've been working with debian sid, and like usually the webserver is
> apache; the error is something like thist: "error .... cannot locale
> host:localhost...", but i try to do this: "# psql -h localhost -U xxx -p
> 5432 -d test " and i make connection.
>
> In test.php, i change localhost by 127.0.0.1, and nothing, the same
> error, and phpinfo() work.

Perhaps choose a more informative subject next time :-)

This is almost certainly a typing error in your PHP connection string. It
should be something like:

$conn = pg_connect("host=localhost dbname=test user=test password=tpass");

If your connect string is of that type, please give the *exact* error message
you receive.

--
Richard Huxton
Archonet Ltd

In response to

  • Edward at 2003-09-29 13:41:37 from ejos

Browse pgsql-general by date

  From Date Subject
Next Message E. Zorn (RDG-rational) postsql 2003-09-29 15:34:22 Access - can't close Form
Previous Message Alvaro Herrera 2003-09-29 15:34:03 Re: numeric rounding