php/osx and firebird

From: Date: Thu, 05 May 2005 14:43:36 +0000
Subject: php/osx and firebird
Groups: php.general 
Request: Send a blank email to php-general+get-214539@lists.php.net to get a copy of this message
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

« previous php.general (#214539) next »