sudo apt-get install php5-dev firebird2.5-dev php-pear devscripts debget
You need to build the pdo extension from php from ubuntu source code here is the source for php package (apt-get source will do the job for any release)
apt-get source php5 cd php5-* cd ext/pdo_firebird phpize sudo ln -s /usr/include/php5 /usr/include/php ./configure make sudo make install
Check to have in php.ini to have the next lines also with phpinfo() function
sudo pico/vi /etc/php5/conf.d/pdo.ini # configuration for php PDO module extension=pdo.so extension=pdo_firebird.so php -i | grep PDO PDO PDO support => enabled PDO drivers => firebird PDO_Firebird PDO Driver for Firebird/InterBase => enabled
you can also check in apache if all is correct
by creating a page in /var/www/pdo_info.php
with this content
then in the browser press F3 and search PDO
to check if all is ok with the driver then create one small example that loads the driver and then is connecting to the database server
after the driver is loaded now you can use the pdo as usual , here is the fetch example