FIREBIRD:PHP conectando a um DB remoto

De Wiki Hackstore

Para se conectar a um DB Firebird remoto, crie um arquivo PHP de exemplo:

<?php
$username = 'SYSDBA';
$password = 'masterkey';
$dbh = ibase_connect('10.1.1.250/3050:C:\\Firebird\\banco\\DB.fdb', $username, $password); 
//$stmt = 'SELECT * FROM tblname';
$stmt = 'SELECT * FROM AGENCIA';
$sth = ibase_query($dbh, $stmt);
while ($row = ibase_fetch_object($sth)) {
    echo $row->NOMEAGENCIA, "\n";
}
ibase_free_result($sth);
ibase_close($dbh);
?>