linux client ibase/PHP PB

admin

Administrator
Staff member
I have Linux client of ibase, php4.0.2, apache...
When i try the exemple to connect ibase:

<?
$host='ddsis:h:\\ibase\\sdis66.gdb' ;
$username='user' ;
$password = 'pass';
$dbh = ibase_connect ($host, $username, $password);
$stmt = 'SELECT * FROM tblname';
$sth = ibase_query ($dbh, $stmt);
while ($row = ibase_fetch_object ($sth)) {
print $row->email . "\n";
}
ibase_close ($dbh);
?>

it answer me:

Warning: InterBase: Unable to complete network request to host "ddsis". Failed to locate host machine. Undefined service gds_db/tcp. in /home/intranet/www.intrasdis66.fr/tmp/index.php on line 5

Warning: No InterBase link resource supplied in /home/intranet/www.intrasdis66.fr/tmp/index.php on line 7

Warning: Supplied argument is not a valid InterBase result resource in /home/intranet/www.intrasdis66.fr/tmp/index.php on line 8

Warning: 0 is not a valid InterBase link resource in /home/intranet/www.intrasdis66.fr/tmp/index.php on line 11

but i have the service in inet.conf and service, and the srvice look that:

gds_db ...........
not
gds_db/tcp ........

i don't no if it s normal ?
but it not working help me please.
 
Back
Top