Connecting PostgreSQL db using Pear

From: Devrim GUNDUZ <devrim(at)oper(dot)metu(dot)edu(dot)tr>
To: pgsql-php(at)postgresql(dot)org
Subject: Connecting PostgreSQL db using Pear
Date: 2002-09-30 16:59:42
Message-ID: Pine.LNX.4.44.0209301954550.15345-100000@oper.metu.edu.tr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php


Hi all,

I've been trying to connect to a local PostgreSQL server using Pear, but I
could not succeed:

Here is the connect string:

$dsn = "pgsql://$username:$password(at)tcp($hostname:$port)/$dbname";

And all the variables seems to be ok when I print $dsn.

However, I get the following error:

"DB Error: connect failed"

What should I do to correct this?

Best regards.

--

Devrim GUNDUZ

devrim(at)oper(dot)metu(dot)edu(dot)tr Tel : (312) 295 9318
devrim(dot)gunduz(at)linux(dot)org(dot)tr Faks : (312) 295 9494

Web : http://devrim.oper.metu.edu.tr
------------------------------------

Responses

Browse pgsql-php by date

  From Date Subject
Next Message test test 2002-10-01 16:54:53 Inserting Null Value or String Value
Previous Message Josh Berkus 2002-09-27 19:05:49 PGSQL-Performance mailing list.