Ok, i got this working.
I installed the db2 connect package with the sdk that came with it. and I am thinking php used the sdk portion when compiling with the --with-ibm-db2 option but not sure
after messing around alot, i removed all parts of db2 except the run-time client.
then after finding some docs on the ibm web site, i ran the catalog command.
this is all you need to connect php to a db2 database. (you dont need the control center, db2cc) Some platforms come with something called Client Config Assistant, which will work, but not linux i think.
anyway the catalog instructions are here under Step C.
http://www-4.ibm.com/cgi-bin/db2www/data/db2/udb/winos2unix/support/document.d2w/report?fn=db2v7ixdb2ix72.htm#HDRTCPS3
if you can get php to compile without the Connect SDK, then you dont need connect, just the run-time client. (i will find out for sure)
Steps from scratch:
- install db2 client and configure an instance
- set up and test the db2 connection within the db2 client with the catalog command
- untar and configure apache
- untar, configure, and compile php with --with-ibm-db2 option
- reconfigure and compile apache with php support
then php should work with the odbc() functions, but its really using the native db2 interface.
I will be making detailed step-by-step and putting it on http://www.e-gineer.com
shawn