Before close the connection remember to free your query results too...
$dbh = ibase_connect($host, $username, $password);
$stmt = 'SELECT * FROM tblname';
$sth = ibase_query($dbh, $stmt);
while ($row = ibase_fetch_object($sth)) {
.............
}
ibase_free_result($sth); // <-------
ibase_close($dbh);
ibase_close
(PHP 4, PHP 5)
ibase_close — Chiude una connessione ad un database InterBase
Descrizione
bool ibase_close
([ resource $connection_id
] )
Chiude il collegamento ad un database InterBase che è stato associato con un id di connessione restituito da ibase_connect(). Se l'id di connessione viene omesso, viene considerato l'ultimo collegamento che è stato aperto. La transazione predefinita sul collegamento viene "committed", le altre transazioni vengono "rolled back".
Vedere anche ibase_connect() e ibase_pconnect().
ibase_close
02-Apr-2002 03:18
