Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / February 2005

Tip: Looking for answers? Try searching our database.

Connect to DB2 database through PHP WITHOUT ODBC ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Markus Keuthmann - 23 Feb 2005 13:10 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.