* Samik Raychaudhuri <[EMAIL PROTECTED]> [2004-10-07 21:12:31 -0500]:
> I am trying to run a perl CGI program for accessing a database. The > program runs fine from command prompt, producing expected > output. But it gives errors while running as CGI. Has this ever worked? > $dbh=DBI->connect("dbi:Pg:dbname='samik';host='abc.org';port=5432","samik","xxxx"); It seems that machine can't resolve abc.org (although I can). The format of your connect string is a little unorthodox, but it seems to work in general. What does 'dig abc.org' return on this machine? -- Steven Klassen - Lead Programmer Command Prompt, Inc. - http://www.commandprompt.com/ PostgreSQL Replication & Support Services, (503) 667-4564 ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org