php/osx and firebird

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've attempted to access a firebird database living on an osx/apache/php machine.

When I'm running the following script,
<?php

	ini_set("magic_quotes_sybase", "On");

$host = 'localhost:/Library/Frameworks/Firebird.framework/Resources/examples/employee.fdb';
$username = "sysdba";
$password = "masterkey";




	$dbh = ibase_connect($host, $username, $password);

if (!($dbh=ibase_connect($host, 'sysdba', 'yourpass', 'ISO8859_1', 0, 1)))
die('Could not connect: ' . ibase_errmsg());


$stmt = 'SELECT * FROM employee';
$sth = ibase_query($dbh, $stmt);
while ($row = ibase_fetch_object($sth)) {
echo $row->full_name, "\n";
}
ibase_free_result($sth);
ibase_close($dbh);
?>


I get the following error:
"Call to undefined function ibase_connect()"


How do I enable those functions? I've looked at the php documentation (http://uk2.php.net/manual/en/ref.ibase.php )


"To enable InterBase support configure PHP --with-interbase[=DIR], where DIR is the InterBase base install directory, which defaults to /usr/interbase."
I've tried to add:
--with-interbase=/Library/Frameworks/Firebird.framework/Resources
to my php.ini and it didn't work.


Am I pointing to the wrong directory? What other configuration/setup do I have to do to enable php's interbase functions?

Thanks.

--
-James

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux