Subject Re: [firebird-php] Firebird and PHP-Interbase extension on a Mac (bsd)
Author Milan Babuskov
Just a few remarks to these fine instructions:

Nigel Weeks wrote:
> 3.
> If the previous one worked, and all dependencies are found ok, do the
> ./configure again, but add the --enable-interbase=/path/to/firebird.
> (I'm not sure where Firebird will be on OSX, but a `which isql` should tell
> you)
> If this works ok, and it can find all the dependencies, you're ready to
> compile.

Mind you, there could a another utility called isql (like some ODBC
tools), so it's not good. Also, isql is rarely in the PATH, so which
will probably produce nothing. But, since he's using Firebird on OSX,
I'm sure he knows where it is already, so it's not an issue.

> 5.
> Copy this file to your PHP extensions directory. On a Fedora machine I have
> access to, this is '/usr/lib/php4/'. On FreeBSD, it's
> '/usr/local/lib/php/20040412/'

The easiest way to find it is to look in php.ini for ExtensionsDir or
something similar.

> 6.
> Tell PHP about the new extension. In your 'php.ini', uncomment/add the line
> 'extension=interbase.so'.
> On FreeBSD, this is in '/usr/local/etc/php.ini'
> My Fedora machine has a directory in '/etc/php.d/' that contains an
> 'interbase.ini' file the above line in it - might be an installation
> specific thing, I dunno. Just letting you know! :-)

IIRC, you can get php.ini location by looking at output of phpinfo();

--
Milan Babuskov
http://www.flamerobin.org