RE: [PHP-DB] Re: problem with php and unixODBC
| From: | Andrew Hill | Date: | Wed, 21 Aug 2002 19:08:04 +0000 |
| Subject: | RE: [PHP-DB] Re: problem with php and unixODBC | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-21296@lists.php.net to get a copy of this message | ||
Marten,
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 http://www.openlinksw.com
Universal Data Access & Virtuoso Universal Server
-----Original Message-----
From: Marten Lehmann [mailto:lehmann@variomedia.de]
Sent: Wednesday, August 14, 2002 4:59 AM
To: Nick Gorham
Cc: php-db@lists.php.net
Subject: [PHP-DB] Re: problem with php and unixODBC
Hello,
> 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"
is
> 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?
Regards
Marten
--
Variomedia IT-Service GmbH | Benzstrasse 22 | 14482 Potsdam
http://www.variomedia.de | Hotline: 0800-5588550 | Fax:
0331-7404043
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php