I'm trying to connect to a DB2 database on an AS400 server on my local network, using PHP and the ADOdb library.
There is some documentation on doing this here
Here is the code to connect to DB2
Code: Select all
$db =& ADONewConnection('db2');
$dsn = "driver={IBM db2 odbc DRIVER};Database=sample;hostname=localhost;port=50000;protocol=TCPIP;".
"uid=root; pwd=secret";
$db->Connect($dsn);Checking the documentation, the is a prerequisite for this connection. I need to have a DB2 CLI/ODBC interface. What is this? any Ideas on where to get this missing driver I need?
I need this driver for Windows XP, and also a version for Ubuntu Linux Server 6.06 LTS.
If anyone knows where to get this I would really appreciate your help.
Thanks.