Subject Re: [firebird-php] Making PHP aware of Firebird 1.5
Author Philippe Makowski
Le 06/08/2003 17:35, Scott Taylor a écrit :

> I guess ignoring errors is OK at this point, personally, I hate errors in
> anything and go that extra step to clean it up.
>
It's ok because I only need to compile interbase.so, by the way I hate errors too ;)

> Be sure to read the README file, you will need to edit some configuration
> file in the inc directory, set the location of your Firebird utilities, etc.
>
thanks

So I resume for all

Firebird 1.5 RC4 PHP 4.3.1 Mdk 9.1

Install the rpm (apache an php)

Get the PHP source from http://www.php.net/downloads.php

untar it:
tar xvfz php-*.tar.gz

cd to the untared base dir:
cd php-4*

according to <http://bugs.php.net/bug.php?id=23928>
add #define ISC_FAR in php_interbase.h
export LIBS="-lstdc++ -lcrypt"


compile it with ib support:
./configure --with-interbase=shared,/usr/local/firebird

make
(or make -i if you get errors before compiling interbase.so)
It's ok there to ignore errors because we only want interbase.so

cp the module to /usr/lib/php/extensions

cp modules/interbase.so /usr/lib/php/extensions

Add the line :
extension=interbase.so

to the /etc/php.ini file in the Dynamic Extensions section

Now it should work.



--
Philippe Makowski
Firebird serveur SQL open-source en français http://firebird-fr.eu.org
Ma clé PGP : http://makowski.eu.org/pgpkey.html