Skip to content

Instantly share code, notes, and snippets.

@mariuz
Created May 23, 2011 17:39
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mariuz/987126 to your computer and use it in GitHub Desktop.
Save mariuz/987126 to your computer and use it in GitHub Desktop.
pdo connection example for firebird driver http://www.php.net/manual/en/ref.pdo-firebird.connection.php
<?php
$str_conn="firebird:host=localhost;dbname=/var/lib/firebird/2.5/data/employee.fdb;charset=UTF8";
$dbh = new PDO($str_conn, "sysdba", "masterkey");
?>
@jackmcmorrow
Copy link

So, your script came along when I was searching how to install pdo_firebird driver on PHP 5 in an Ubuntu server. Will try posting any findings here so other people can find it.

@giovannefeitosa
Copy link

@jackmcmorrow did you find something?

@giovannefeitosa
Copy link

I found this that worked for me:

apt-get install php-interbase

even if it doesn't have PDO in the title, it added the firebird PDO driver in ubuntu

@bcamargogui
Copy link

Cool, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment