Entry
Can I use PHP to interface with an AS/400 database?
how can i do a remote connect from PHP using the --with-ibm-db2 code which relies on the DB2 CLI lib
Sep 23rd, 2000 01:23
Remo Ronchitelli, Nathan Wallace, Lee Kit, Rasmus Lerdorf
It works! On Linux RedHat 6.1; Apache 1.3.12; PHP 4.0.2.
You must use DB2Connect Personal Edition for Linux Free DownLoad from
IBM. Untar and start Korn Shell script (pdksh rpm package required)
"db2setup".
You have to configure DB2Connect via Command Line Processor (better)
or via Control Center (IBM JRE 118 required).
Then Statically Compile PHP 4.0.2 to Apache with the option:
--with-ibm-db2.
Forget ODBC stuff. The only naming convention regarding "odbc" is the
starting of PHP ibm-db2 functions: "odbc_connect" etc.
It connects to AS/400 and IBM Mainframe too (OS/390, MVS/ESA, VM/ESA,
VSE/ESA). For PHP it its the same thing as DB2 UDB Personal Edition for
Linux. To more instructions:
search for "AS/400" on this site or
sangiorgionet@netscape.net