Look at the output of a phpinfo() when you have the putenv()'s - you can
see that there are a couple of different environments here.

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

-----Original Message-----
From: Marten Lehmann [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 14, 2002 4:59 AM
To: Nick Gorham
Subject: [PHP-DB] Re: problem with php and unixODBC


> I know its a little late, but I have only just been pointed to your 
> posting, I would guess the error you are getting "database not found"
> coming from the sybase driver, not the driver manager.

I solved the problem a week ago. It was just when I wanted to try iODBC 
when I saw some putenv()-lines in the examples. I put the appropriate 
lines in my php-script and then it worked. What I don't unterstand is: 
When I'm running isql in the shell I can connect to the 
remote-ressource. When I start apache in the same shell I can't connect 
through PHP, I first have to set the ODBCINSTINI and ODBCINI 
env-variables. Why don't I need them in the shell?


Variomedia IT-Service GmbH | Benzstrasse 22 | 14482 Potsdam | Hotline: 0800-5588550 | Fax: 0331-7404043

PHP Database Mailing List (
To unsubscribe, visit:

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to