Connecting to Interbase w/PHP

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
rennekon
Forum Newbie
Posts: 2
Joined: Thu Jan 07, 2010 1:56 pm

Connecting to Interbase w/PHP

Post 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
Last edited by rennekon on Thu Jan 07, 2010 2:31 pm, edited 1 time in total.
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Connecting to Interbase w/PHP

Post 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.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
rennekon
Forum Newbie
Posts: 2
Joined: Thu Jan 07, 2010 1:56 pm

Re: Connecting to Interbase w/PHP

Post 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!
Post Reply