By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,353 Members | 1,529 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,353 IT Pros & Developers. It's quick & easy.

Connect to DB2 database through PHP WITHOUT ODBC ?

P: n/a
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
Nov 12 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Ian
Markus Keuthmann wrote:
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


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.


Nov 12 '05 #2

P: n/a
Markus Keuthmann wrote:
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


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
Nov 12 '05 #3

P: n/a
Dan Scott wrote:
Markus Keuthmann wrote:
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

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


Update: The article is now available at
http://www.ibm.com/developerworks/db.../dm-0502scott/

Dan
Nov 12 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.