Skip to content

Instantly share code, notes, and snippets.

@ezimuel
Created Mar 11, 2013
Embed
What would you like to do?
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