Re: ibm db2 on different host than localhost

From: Date: Sun, 18 Jun 2000 17:30:45 +0000
Subject: Re: ibm db2 on different host than localhost
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2160@lists.php.net to get a copy of this message
> i have a "simple" situation, i want to connect to a db2 on AS/400 with > PHP. > > So i read in the archives that a configure --with-ibm-db2 works fine. > But because > the database server is not on the application server, i dont have the > server db2 APIs > on the php host. There is a product called db2 connect for linux from > ibm, > which should be a db2 client. > > 1. has anybody tried to use it with "--with-ibm-db2" ? Yes, this part works assuming you have the DB2 client libs and header files on the machine you are building PHP on. > 2. has anybody ever tried to connect to a different host with db2? Yes. I have connected to DB2 running on a remote AIX box from PHP running on a Linux box. > 3. does i have a chance? The problem you have is that DB2 on AS/400 is very different from DB2 on AIX. You need to go through the DB2 Connect thing you mentioned, and I am not sure anybody has gotten that to work with PHP. I haven't tried this myself. -Rasmus

« previous php.general (#2160) next »