PHP Extension Firebird

Created by: Lester Caine, Last modification: 02 Jun 2011 (22:26 BST)

Firebird PHP extension provides a client interface to the Firebird Database Server.

Latest version of the interbase version code is found in the PHP extensions area of the PHP SVN repository although working copies can be found in the php5-src package provided with many distributions. It is planned that a DVCS copy of a Firebird port of the extension will be up and running soon.

Firebird can be downloaded from http://www.firebirdsql.org/.

Step 1. Compile Package

Copy the current source code to {home}/Install/firebird and run the compile scripts to process it

Step 2. Configure the extension

Add extension=interbase.so  to your initialization file, and move the interbase block of additional settings from the base php.ini file. On the SUSE setup, the php.ini file can be found in /etc/php5/apache2/ , and the extension ini files are located in /etc/php5/conf.d/ . Moving the extension configurations to separate ini files makes sense, and I plan to strip MySQL and other unnecessary sections from the base php.ini file.

Name Default Changeable Changelog
ibase.allow_persistent "1" PHP_INI_SYSTEM  
ibase.max_persistent "-1" PHP_INI_SYSTEM  
ibase.max_links "-1" PHP_INI_SYSTEM  
ibase.default_db NULL PHP_INI_SYSTEM Available since PHP 5.0.0.
ibase.default_user NULL PHP_INI_ALL  
ibase.default_password NULL PHP_INI_ALL  
ibase.default_charset NULL PHP_INI_ALL Available since PHP 5.0.0.
ibase.timestampformat "%Y-%m-%d %H:%M:%S" PHP_INI_ALL  
ibase.dateformat "%Y-%m-%d" PHP_INI_ALL  
ibase.timeformat "%H:%M:%S" PHP_INI_ALL