Page 1 of 1

Connecting to Interbase w/PHP

Posted: Thu Jan 07, 2010 2:07 pm
by rennekon
Hello all,

My first post on the forum but I've been lurking on it for a while. :) I'm working on a php script to hook up (and eventually query) a firebird database we've setup at work... but there seems to be some problems connecting to it, or even getting PHP to recognize the command to connect.

The command in question is ibase_connect (http://php.net/manual/en/function.ibase-connect.php if you want it) and the error that comes up is Call to undefined function ibase_connect()

I've got a wamp server running PHP 5.3.0 and Apache 2.2.1 so everything's up to date.

My research on this error tells me that it means the dll is not available to php but it is in the same place as all the other extensions (I downloaded it and put it there myself). The php.ini file has the extension uncommented. Someone else mentioned that it could mean that php was not compiled/configured to work with interbase... and as far as I can tell I can't recompile it as a windows user. Any advice or suggestions?

--Kenner

Re: Connecting to Interbase w/PHP

Posted: Thu Jan 07, 2010 2:27 pm
by AbraCadaver
I've never used it, so there could be a whole host of issues, but if the dll you speak of is the PHP extension and it is in your extension directory, then you need to add it to or uncomment it in php.ini and restart Apache:

Code: Select all

extension = interbase.dll
Just a wild guess.

Re: Connecting to Interbase w/PHP

Posted: Thu Jan 07, 2010 2:30 pm
by rennekon
Actually I've done that as well, but forgot to mention it, I'll edit my first post to reflect that.

Thanks for the try though!