Re: putenv() doesn't seem to work!! Groan!
| From: | Martin Lustig | Date: | Sat, 31 Mar 2001 16:38:22 +0000 |
| Subject: | Re: putenv() doesn't seem to work!! Groan! | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-8067@lists.php.net to get a copy of this message | ||
I just have similar problem on the Sun Solaris unix... My putenv () command
doesn't affect
next part of the script. |-))
Martin.
""Scott Fletcher"" <scott@abcoa.com> pí¹e v diskusním pøíspìvku
news:99viqu$av6$1@toye.p.sourceforge.net...
> One more thing, could it be that it doesn't work with Caldera Linux??
>
> Scott
>
> ""Scott Fletcher"" <scott@abcoa.com> wrote in message
> news:99vijo$5uj$1@toye.p.sourceforge.net...
> > Hi!
> >
> > I'm using PHP4, iODBC & OpenLink for the database connection and
> > communication. After installing the iODBC (driver manager) & OpenLink
> > (driver), fix up the odbc.ini (part of iODBC or OpenLink) and did the
> > odbctest. The test passed and it connect the linux to the MS-SQL Server
> and
> > I was able to execute the SQL command without a problem.
> >
> > Now come the next part, website database connection. I wrote the
script
> > for the odbc connection, it doesn't work. I got the error message.
> >
> > ================================================================
> > "Warning: SQL error: [OpenLink][ODBC]RPC: Unknown host, SQL state
08004
> > in SQLConnect in /home/website/test.php on line 15
> > Can not connect to DSN: Server --> Test_CMS"
> > ================================================================
> >
> > It look like that PHP can't set the environment variable or put in the
> > environment variable. The script I wrote down is ....
> >
> > putenv("LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH");
> > putenv("ODBCINSTINI=/usr/local/bin/odbcinst.ini");
> > putenv("ODBCINI=/usr/local/bin/odbc.ini");
> >
> > Why does the PHP environment varible doesn't work? What can I do
about
> > it?
> >
> > Thanks,
> > Scott
> >
> >
> >
> >
> >
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-db-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>