I am trying to connect to an external firebird database using php pdo. I get the message:
SQLSTATE[HY000] [335544721] Unable to complete network request to host "192.168.0.10"
My firebird server 64 bit windows and firebird version is 64bit version 2.1 I can connect to firebird locally from this server using php pdo.
My web server is 64bit linux server and I can not connect to firebird but I can connect using isql-fb utility.
I have been googling for a week but I have zero :(
Thanks in advance.
My question is marked as duplicated but mine is different. I can connect with console, I can not connect with php. But I can connect with php from localhost.
$dsn = 'firebird:DataSource=192.168.0.10;Database=C:\Ofisnet\Data\SAV2012.FDB;charset=UTF8;';
echo $dsn . '<br>';
$userName = "SYSDBA";
$password = "password";
$conn = new SafePDO($dsn, $userName, $password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
error_reporting(E_ERROR);