Subject Re: [firebird-php] Need Help In First Firebird-PHP application
Author marius adrian popa
On Mon, Apr 20, 2009 at 12:02 AM, raja_s_patil <kpr.kolhapur@...> wrote:
>
>
> Hi,
>
> I am Trying to have my First web application with Firebird and PHP.
> Server is Ubuntu. installed PHP 5 and apache From Repositories.
> Got adodb from its web site and extracted zip in /var/www/adodb5.
>
> First Test.php is as follows.
>
> <?php
> include('adodb5/adodb.inc.php');
>
> $db = ADONewConnection('firebird');
> $db->debug = true;
> $db->Connect( 'localhost', 'SYSDBA', 'masterkey',
> '/FB_DEV/FB_DATA/Data/BOSS_FB2_ANagar.GDB' );
> $rs = $db->Execute('select * from stations');
>
> print "<pre>";
> print_r($rs->GetRows());
> print "</pre>";
> ?>
>
> invoked with firefox "localhost/test.php". it slammed a error
the interbase extension is not loaded
check with phpinfo is loaded

sudo apt-get install php5-ibase
>
> ----------------------------------------------------------
> localhost: Missing extension for ibase
> (firebird): select * from stations
> Fatal error: Call to undefined function ibase_query() in
> /var/www/adodb5/drivers/adodb-ibase.inc.php on line 366
> ----------------------------------------------------------
>
> what shall do ? Can somebody guide me ?
>
> Thanks and best regards
>
> Raja
>
>