Subject | Re: [firebird-support] Web - interface |
---|---|
Author | matteo@euronia.it |
Post date | 2005-05-20T12:35:34Z |
On 20 May 2005 at 14:06, Christian wrote:
<?
ADOLoadCode('firebird');
$db = &ADONewConnection();
$db->PConnect('/home/db.fdb', 'SYSDBA', 'masterkey');
?>
> > I use from 4 year's ago adodb like layer to connect to database + php +hello i use it:
> > apache
> > all is affidable and secure my experience said this.
> >
> > adodb -> http://adodb.sourceforge.net/
>
>
> I successfully connect for the first time to firebird :-) .
> But is this the correct way (with the php interbase extension) or exists
> there a special extension for firebird?
>
> <?php
>
> include('adodb/adodb.inc.php');
> $db = ADONewConnection('ibase');
> $db->PConnect('host:c:\temp\db.fdb','sysdba','masterkey');
>
> $rs = $db->Execute('select * from table1');
> ?>
<?
ADOLoadCode('firebird');
$db = &ADONewConnection();
$db->PConnect('/home/db.fdb', 'SYSDBA', 'masterkey');
?>