Export environment variable from PHP, for use by exec()'d shell command?
- by anonymous coward
Somewhat similar to http://stackoverflow.com/questions/2002970/export-a-variable-from-php-to-shell, but my problem is different.
I am forced to work with a program that gets an important location variable from an Environment Variable (Linux), rather than a config or, better, a command line option.
I have to call this program from within PHP,…