2

I have an Ubuntu server (LAMP)

Now I want to connect with an external firebird database. How can I do that? Can I install a firebird driver? How can I install a firebird driver?

Do I have to modify my php.ini file?

3
  • please follow this link: php.net/manual/en/ref.pdo-firebird.php Commented Jul 3, 2013 at 9:21
  • I don't understand where I have to execute that command:./configure --with-pdo-firebird Commented Jul 3, 2013 at 9:22
  • Do I have to install the full firebird first on my ubuntu server? Commented Jul 3, 2013 at 9:33

1 Answer 1

3

I do not use PDO

#apt-get install php5-interbase

You do not need to install firebird on local machine PHP sample code

    $dbh = ibase_pconnect("remote_server_ip:db_file", "user_name", "user_password") or die('die message');
    $q = ibase_query($dbh, "select * from some_table");
    while ($r = ibase_fetch_object($q)) {
        $some_value = $r->SOME_FIELD;
        echo $some_value;
    }
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.