Subject Re: [firebird-php] Connection to FB from PHP
Author Daniel Urban
> I've tried to connect to FB from php using

> ibase_connect("localhost","SYSDBA","masterkey")

> but the function return error. Do I have to specify .gdb file in my connection function?

Yes, you should

for example:
<?php
$host = 'localhost:/path/to/your.gdb';

$dbh = ibase_connect($host, $username, $password);
$stmt = 'SELECT * FROM tblname';
$sth = ibase_query($dbh, $stmt);
while ($row = ibase_fetch_object($sth)) {
echo $row->email, "\n";
}
ibase_free_result($sth);
ibase_close($dbh);
?>

[Non-text portions of this message have been removed]