Re: Database Connection

From: Date: Tue, 05 Feb 2002 16:35:52 +0000
Subject: Re: Database Connection
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-16536@lists.php.net to get a copy of this message
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 .

« previous php.db (#16536) next »