Connect Firebird via PHP

Asked

Viewed 445 times

3

I have a BD in Firebird on a server other than the web server (PHP). I’m trying to make the connection between them, using the ibase_connect function, but nothing happens, my line in php is: $dbh=ibase_connect($host,$username,$password) or die(ibase_errcode()); and then echo "teste"; and there is no "test" display or error message.

I have on the web server the dlls of Firebird and php_interbase.dll

I need help to make this connection.

Following the recommendations, I found that the PHP extension was active in the wrong instance on the ISS. I was able to call in the correct instance and the error message appeared connection rejected by remote interface. I believe the error now is to be able to map the BD Firebird address.

  • PHP recognized Interbase? To check this, run the phpinfo() function and see if there is an Interbase.

  • Identified yes, appears in the Module Authors table, | Interbase | Jouni Ahto, Andrew Avdeev, Ard Biesheuvel |

  • Check if you have something like this image: https://i.imgur.com/779oPmB.png What you said is only the authors of the module and does not mean that it has been recognized. If not, the Firebird connection is not picking up because PHP is not recognizing.

  • This did not appear no, in which case it is error in the driver?

  • In fact, PHP did not recognize the Interbase module and will not be able to communicate. You are using Wamp or another server?

  • That I can’t tell you (but I think it’s not Wamp), I already left work today. On Monday I see and put here.

  • Bom dia @Piupz

Recebi uma recomendação de colocar o código 
'ini_set('display_errors', 1);
ini_set('display_startup_erros', 1);
error_reporting(E_ALL | E_STRICT);'
 para exibir o erro que está ocorrendo, e foi o seguinte: Fatal error: Uncaught Error: Call to Undefined Function ibase_connect() in C: VRE Avcipes PHP Conectfire.php:11 Stack trace: #0 {main} thrown in C: VRE Avcipes PHP Conectfire.php on line 11 from Microsoft, I don’t know about Wamp.

  • I never made connection with Firebird via php, but normally in desktop applications it is necessary to put the dlls gds32.dll and fbclient.dll in the same folder where the executable is, try putting them together with your php connection file.

  • I was able to make the connection, but it’s very intermittent and it’s even "knocking down" the bank. There is another application that people use that same database, when I start testing, that other application starts to fail.

Show 4 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.