Subject Re: [firebird-php] Need Help for Firebird 2.1 PDO driver on Ubuntu 8.04.1
Author marius adrian popa
On Sat, Apr 18, 2009 at 5:59 AM, raja_s_patil <kpr.kolhapur@...> wrote:
>
>
> Hello ,
>
> We are in process of adding web application to our existing
> Firebird-delphi C/S desktop application.
>
> We have Ubuntu 8.04.1 and firebird 2.1 and we have installed
> Apache, PHP 5 on database sever for development environment.
> We could find MySQL PDO driver in Ubuntu Repository but not
> for Firebird. Can Somebody Guide us about we should proceed
> with PDO driver for Firebird

another option is to use the official php5 source from ubuntu
sudo apt-get install php5-dev firebird2-dev php-pear devscripts debget
sudo pecl install pdo

you need to build the pdo extension from php from ubuntu source code
here is the source for php package
http://packages.ubuntu.com/hardy/php5
you need to install dget
dget http://archive.ubuntu.com/ubuntu/pool/main/p/php5/php5_5.2.4-2ubuntu5.5.dsc
cd php5-5.2.6.dfsg.1
cd ext
cd pdo_firebird

phpize
./configure
sudo ln -s /usr/lib/libfbclient.so.2.1.1 /usr/lib/libgds.so
make
sudo make install
check to have in php.ini to have the next lines
also with phpinfo() function
# configuration for php PDO module
extension=pdo.so
extension=pdo_firebird.so

>
> Thanks and Best Regards
>
> Raja
>
>