Connecting to Firebird in php

Problem connecting from php to firebird database. Connection code:

$database   = "192.168.1.34:C:/db.gdb";
$user       = "SYSDBA";
$password   = "masterkey";
$db = ibase_connect($database, $user, $password);

However, when it is executed, the server throws an error:

PHP Fatal error:  Call to undefined function ibase_connect()

But at the same time, the necessary extensions are connected – php_interbase and php_pdo_firebird. What else could be wrong?


Answer 1, authority 100%

$db = @ibase_connect($database, $user, $password);

That’s how it’s supposed to be. I could even translate the error and understand: “Call to an undefined function”.


Answer 2, authority 100%

So, the issue is resolved. It was necessary to take the client library gds32.dll and copy it to the Apache directory. Moreover, the file must be taken strictly the same as that used in the Firebird database, otherwise it will not work.