RE: [PHP-DB] IBM DB/2 + PHP4

From: Date: Thu, 20 Jul 2000 16:44:51 +0000
Subject: RE: [PHP-DB] IBM DB/2 + PHP4
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-1348@lists.php.net to get a copy of this message
php_odbc.h:#define ODBC_TYPE "Solid" php_odbc.h:#define ODBC_TYPE "Empress" php_odbc.h:#define ODBC_TYPE "Adabas D" php_odbc.h:#define ODBC_TYPE "iODBC" php_odbc.h:#define ODBC_TYPE "unixODBC" php_odbc.h:#define ODBC_TYPE "ESOOB" php_odbc.h:#define ODBC_TYPE "Openlink" php_odbc.h:#define ODBC_TYPE "Velocis" php_odbc.h:#define ODBC_TYPE "DBMaker" php_odbc.h:#define ODBC_TYPE "Custom ODBC" php_odbc.h:#define ODBC_TYPE "IBM DB2 CLI" On Thu, 20 Jul 2000, Robert Hall wrote: > I think it should include the names of the 5 or 6 databases being accessed > this way. Actually, I'm hoping that someone will post them now. > > Bob Hall > > -----Original Message----- > From: Teodor Cimpoesu [mailto:teo@digiro.net] > Sent: Thursday, July 20, 2000 11:50 AM > To: php-db@lists.php.net > Subject: Re: [PHP-DB] IBM DB/2 + PHP4 > > > Hi Rasmus! > On Wed, 19 Jul 2000, Rasmus Lerdorf wrote: > > > > I have a similar question, so even if you don't have an ODBC driver on > your > > > box (I'm in linux) you can still use the odbc functions to talk to a db2 > > > database if you supply the config paramater? just making sure, it seems > > > kinda hackish, you might want to document this somewhere :P > > > > DB2 is one of several databases covered by the Unified-ODBC code in > > PHP. Unified-ODBC confuses a lot of people. In as simple a way as I can > > put it: > > > > Some databases use a native API modelled after the CLI (Call > > Level Interface) specification. We found that we had 5 or 6 different > > PHP database modules that were mostly identical because the native API > > calls were the same for the various databases. Instead of trying to > > maintain the same code in 6 different files, we combined it into a single > > unified file. When you build PHP using --with-ibm-db2 you tell PHP to use > > the unified odbc driver file in its DB2 mode. At the PHP user-level you > > use the ODBC function calls. This doesn't mean you are using the ODBC > > wire protocol. Behind the scenes these PHP calls go directly to the > > linked in native CLI library provided with DB2. So, even though you are > > typing odbc_connect(), there is actually no ODBC going on here. > > I think this useful reply from Rasmus should go into a README.odbc ... > > -- teodor > >

« previous php.db (#1348) next »