Re: pear db and pgsql
| From: | rob caSSon | Date: | Wed, 02 May 2001 21:01:36 +0000 |
| Subject: | Re: pear db and pgsql | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-9068@lists.php.net to get a copy of this message | ||
> i'm having a hell of a time figuring out how to connect to a postgresql
> database using the pear db abstraction...here's some code snippets:
RTFM (or a tutorial rather)...hate when people answer their own questions,
but here goes:
> $db = DB::connect("pgsql://username:password@localhost/audio");
change to:
$db = DB::connect("pgsql://username:password@unix+localhost:5432/audio")
makes sense....specify protocol, and such; found good documentation here:
http://vulcanonet.com/soft/?pack=pear_tut
r