Hi,
is it possible to connect to a DB2 database through PHP WITHOUT ODBC like in MySQL?
Example MySQL:
// Open the database connection and use the sample
// database
$connection = mysql_connect("localhost","user1","xxxx");
mysql_select_db("sample", $connection);
Best regards
Markus
Ian - 23 Feb 2005 23:30 GMT
> Hi,
> is it possible to connect to a DB2 database through PHP WITHOUT ODBC like in MySQL?
[quoted text clipped - 8 lines]
> Best regards
> Markus
Although the PHP interface to DB2 uses the unified odbc_* functions,
my understanding is that they are coded to use DB2 CLI.
They do *not* require an ODBC driver manager to function properly.
Dan Scott - 24 Feb 2005 01:32 GMT
> Hi,
> is it possible to connect to a DB2 database through PHP WITHOUT ODBC like in MySQL?
[quoted text clipped - 8 lines]
> Best regards
> Markus
Check developerWorks tomorrow for an article (by yours truly) that
describes how to compile the Unified ODBC extension directly against the
DB2 CLI libraries. It's "ODBC" in name only at that point.
Dan
Dan Scott - 25 Feb 2005 12:04 GMT
>> Hi,
>> is it possible to connect to a DB2 database through PHP WITHOUT ODBC
[quoted text clipped - 14 lines]
>
> Dan
Update: The article is now available at
http://www.ibm.com/developerworks/db2/library/techarticle/dm-0502scott/
Dan