Image

Imagexinu wrote in Imagephp 😈predatory

Pear::DB Woes

I'm trying to connect to a PostgreSQL database on a system that only allows unix socket connections. The DNS I'm trying is below, but no joy so far. I've verified that I can connect to the database on the commandline with 'psql'.
$db = DB::connect('pgsql://username:password@unix(/tmp/.s.PGSQL.5432)/database');