Issue closing postgres db connection..
- From: noel.whelan@xxxxxxxxx
- Date: 24 Jan 2006 10:12:02 -0800
I've got an intriguing issue..I've got no problem initiating a
connection to a postgres database with pg_connect(), with code like:
$dbc = pg_connect("$ip $db $dbid $dbpwd") || die();
...but, if I want to close that connection with pg_close($dbc), I get
the following:
PHP Warning: pg_close(): supplied argument is not a valid PostgreSQL
link resource in..
Clearly this isn't interfering with doing what I intend to do; but
ideally I'd close the connection (I just consider that cleaner). I
can't tell what the issue would be in this case: postgres config?
php.ini? I'm just curious..
Installed: php-5.0.5, postgresql-8.0.4 (IIS/Windows XP). Thank you for
any input..
.
- Follow-Ups:
- Re: Issue closing postgres db connection..
- From: Sean
- Re: Issue closing postgres db connection..
- Prev by Date: Re: Add watermark to image?
- Next by Date: Re: Add watermark to image?
- Previous by thread: Add watermark to image?
- Next by thread: Re: Issue closing postgres db connection..
- Index(es):
Relevant Pages
|