Re: [PHP4BETA] [PHP4] ODBC Error with IBM db2 With odbc_connect
| From: | frederic | Date: | Fri, 05 May 2000 16:57:21 +0000 |
| Subject: | Re: [PHP4BETA] [PHP4] ODBC Error with IBM db2 With odbc_connect | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-14534@lists.php.net to get a copy of this message | ||
Hi,
Thanks a lot.
I have got unixodbc. I configure it well. I have test with isql, and i connect
to my db2 server.
I have build PHP4RC1. No problem with configure (--with-unixODBC=/usr/local).
Make and make install OK.
But Apache do not work. When I do a request the the Webserver, Apache do not
respond. No error anywhere are signaled.
So I have try with PHP 3. The same thing.
Am I stupide? May be...but I would like have help to understand.
Thank you.
Nick Gorham a écrit :
> LIARD DENIS wrote:
>
> > Hello,
> >
> > We success to install IBM db2 V6.1 Cli on a Redhat 6.1 with Apache 1.3.9
> > and PHP4.0RC1.
> >
> > Before make, we do : export LDFLAG='-L/home/db2inst1/sqllib/lib'
> >
> > Make Ok
>
> Hi.
>
> If you want to go via ODBC...
>
> It might be worth installing a driver manager (http://www.unixODBC.org) works
> with db2 here, and building PHP with that. it will map the ODBC 2 calls in
> PHP to the ODBC 3 calls.
>
> Just as a aside, when you configure odbcinst.ini you need to set a special
> flag for DB2 to overcome a problem with the lib and dynamic linking, I have
> the entry set as
>
> [DB2]
> Description = DB2 Driver
> Driver = /usr/IBMdb2/V6.1/lib/libdb2.so
> FileUsage = 1
> DontDLClose = 1
>
> and the odbc.ini entry as
>
> [sample]
> Description = Test to DB2
> Driver = DB2
>
> You must have the DB2INSTANCE variable set to a configured user, ie
>
> DB2INSTANCE=db2inst1
>
> Check that you can connect via the command line tools before using PHP.
>
> --
> Nick Gorham
> Easysoft
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net