Pear::DB Woes

    Date: 03/17/05 (PHP Community)    Keywords: database, sql, postgresql

    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');

    Source: http://www.livejournal.com/community/php/274389.html

« displaying Japanese from... || Clean fields? »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home