Have you tried setting the variables with putenv() ?

Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software
Universal Data Access & Virtuoso Universal Server

-----Original Message-----
From: Doug Smith [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, August 08, 2002 2:28 PM
Subject: Re: [PHP] can i use --with-unixODBC instead of --with-ibm-db2?

> I just checked my config, and I *actually* have that line in
> that, and if it fixes it, I'll correct the doc.

although my apache is built via rpm, i put the line (.
/home/db2inst1/sqllib/db2profile) in apachectl and started httpd w/
apachectl, buuuut...

unfortunately i'm still getting the

Warning: SQL error: , SQL state tO@6#A@ in SQLConnect in
/var/www/html/db2php/db2lib.php on line 8


i also tried to add "export DB2INSTANCE=db2inst1" in the same script and
that didn't help either.

could the problem be that i'm starting httpd (or apachectl) as root? i
the ". /home/db2inst1/sqllib/db2profile" is supposed to make apachectl
inherit the db2 environment variables, but...... somehow it's not
working :/

matt, thank you again :)


p.s. for the record__________________________
i386-redhat-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin
ir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share
e --libdir=/usr/lib --sysconfdir=/etc --with-apxs=/usr/sbin/apxs

PHP General Mailing List (
To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to