note 16427 added to function.pg-connect

From: Date: Tue, 30 Oct 2001 03:50:38 +0000
Subject: note 16427 added to function.pg-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-19591@lists.php.net to get a copy of this message
Odd... Thought I'd post in case anyone else has similar problems... I was using $conn = pg_connect(...) and calling it multiple times... Worked fine in php3, but when i ran it in php4 (4.0.3pl1 to be precise), I had errors about the index being invalid (ie. $conn was invalid after 1 usage)... So i used $con=pg_pconnect() (and pg_close($conn)at the end of the script) and it's now working fine... -- http://www.php.net/manual/en/function.pg-connect.php http://master.php.net/manage/user-notes.php?action=edit+16427 http://master.php.net/manage/user-notes.php?action=delete+16427 http://master.php.net/manage/user-notes.php?action=reject+16427

« previous php.notes (#19591) next »