Subject | Re: [firebird-php] Does ZF2 PDO Firebird DB Adapter works? |
---|---|
Author | Lester Caine |
Post date | 2014-10-22T16:14:57Z |
On 22/10/14 17:02, Diego Andres Garcia dgarcia@...
[firebird-php] wrote:
$str_conn = "firebird:dbname=server4/3050:e:\fbdata\SIGELPRESTDEV.FDB";
$dbh = new PDO($str_conn, "SYSDBA", "masterkey");
$params = array(
'host' => 'server4',
'username' => 'SYSDBA',
'password' => 'masterkey',
'dbname' => 'e:\fbdata\SIGELPRESTDEV.FDB'
);
$db = Zend_Db::factory('pdo_firebird', $params);
Not sure that Zend actually handles the port number - but 3050 should be
the default anyway.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
[firebird-php] wrote:
> thanx for the answerBy which you mean
>
> using plane php i can connect without any issues
$str_conn = "firebird:dbname=server4/3050:e:\fbdata\SIGELPRESTDEV.FDB";
$dbh = new PDO($str_conn, "SYSDBA", "masterkey");
> i need to use zf2 (Zend framework 2) for several reasons (sorry, tooWhich uses
> long to explain)
$params = array(
'host' => 'server4',
'username' => 'SYSDBA',
'password' => 'masterkey',
'dbname' => 'e:\fbdata\SIGELPRESTDEV.FDB'
);
$db = Zend_Db::factory('pdo_firebird', $params);
Not sure that Zend actually handles the port number - but 3050 should be
the default anyway.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk