Re: environment variable, why does it not work?

From: Date: Mon, 02 Apr 2001 23:51:34 +0000
Subject: Re: environment variable, why does it not work?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-46724@lists.php.net to get a copy of this message
> 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? Does caldera have problem with that? I think you need to get those Env variables set before PHP starts for some reason... Try adding them to the .shrc (or whatever) of your "nobody" user (or whichever user PHP runs as). -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#46724) next »