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.

Hope this helps.

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:[EMAIL PROTECTED]]
> Sent: Tuesday, February 05, 2002 10:46 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] Database Connection
>
>
> Hi,
>
> I have IBM DB2 V7.2 on a windows 2000 server
> I have IBM DB2 Client/Administration Client Development Client V7.2 on a
> Linux Web Server
> >From the Linux server (Command Line) I can connect to the DB2 database
> directly.
>
> I would like to connect to the DB2 Database through PHP4/Apache
>
> After compiling PHP with the option
> "--with-ibm-db2=/home/db2inst1", Apache
> doesn't start anymore.
>
> Do I need to install iODBC (or another ODBC) or is it included ?
>
> Any idea what can cause this problem and how to solve it ?
>
> Thanks
>
> Jerry
>
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to