RE: [PHP-DB] Database Connection

From: Date: Tue, 05 Feb 2002 16:42:52 +0000
Subject: RE: [PHP-DB] Database Connection
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-16538@lists.php.net to get a copy of this message
Jerry, I believe it's the sqllib dir, but you can try the other or experiment with just /home/db2inst1/sqllib If created by the DB2 client installer, try applying the environment variables script: . /home/db2inst1/sqllib/db2profile Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data Integration Technology Providers > -----Original Message----- > From: Jerry [mailto:jerryuk007@gmx.net] > Sent: Tuesday, February 05, 2002 11:36 AM > To: php-db@lists.php.net > Subject: Re: [PHP-DB] Database Connection > > > Thanks Andrew for your answer. > > In the environment variables I have already: > > DB2INSTANCE=db2inst1 > LD_LIBRARY_PATH=:/home/db2inst1/sqllib/lib > > Is it correct ? Or does it need to point to the DB2 Client directory > /usr/IBMdb2/V7.1/lib > > > Thanks. > > Jerry > > > "Andrew Hill" <ahill@openlinksw.com> wrote in message > news:NDBBKFNCBCHANEGAKONKGEIDMEAA.ahill@openlinksw.com... > > Jerry, > > > Installing DB2 Client will allow you to use the ODBC functions > in PHP, but > > be aware that you are not actually using any ODBC Drivers in this > instance. > > PHP allows hiding of certain database specific functions under > a "Unified > > ODBC" that uses the ODBC functions without using true ODBC database > communication. > > > That being said, you don't need to link --with-iODBC unless you > are using > > ODBC Drivers, so it's not an issue here. > > > If Apache doesn't start, I'd check it's logs, but you might be > encountering > > a situation where the DB2 libraries were in the path at compile time and > are > > not at Apache start time. Try setting LD_LIBRARY_PATH environment > variable > > to include the location of your DB2 Client. > > > Andrew Hill > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > . > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > >

« previous php.db (#16538) next »