Connecting PostgreSQL db using Pear

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



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@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@xxxxxxxxxxxxxxxx			Tel  : (312) 295 9318
devrim.gunduz@xxxxxxxxxxxx		Faks : (312) 295 9494

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





[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux