Subject Re: [firebird-php] Getting ibase_connect() to work.
Author Philippe Makowski
Le 20/10/2003 08:24, Lester Caine a écrit :

>>I haven't recompiled (on win2003) - I just obtained the library from the
>>full zip download, placed it in the extensions dir, then uncommented the
>>line in the php.ini file which contains the ref to the ib dll.
>>Alan
>
>
> I don't think that the Linux builds work the same way :)
>
> I have got my SUSE8.2 working by using the recompile and I
> believe that is the only way of doing it, but some more
> detailed help on PHP and Linux would be useful. If anybody
> can supply it here.
yes, I think it is the only way

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