Skip to content

Instantly share code, notes, and snippets.

@ezimuel
Created March 11, 2013 16:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ezimuel/5135662 to your computer and use it in GitHub Desktop.
Save ezimuel/5135662 to your computer and use it in GitHub Desktop.
DB2 configuration file connect using ZF2 and ODBC using config/autoload/local.php
<?php
$database = '';
$hostname = '';
$port = '';
$user = '';
$password = '';
return array(
'db' => array(
'driver' => 'db2',
'database' => "DRIVER={IBM DB2 ODBC DRIVER};DATABASE=$database;HOSTNAME=$hostname;" .
"PORT=$port;PROTOCOL=TCPIP;UID=$user;PWD=$password;"
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment