php-shell-wrapper icon indicating copy to clipboard operation
php-shell-wrapper copied to clipboard

Add support for environment variables

Open smalot opened this issue 8 years ago • 2 comments

Hi,

In webserver context, environment variable are often skipped or wrong, because forced by the webserver process itself. So it's necessary to prefix any executed command line by a set of environment variable assignments.

eg: the environment variable 'HOME' is missing when php is run under Apache.

A function like addEnvironmentVariable('HOME', '/home/username') could prefix any command line with:

$> HOME="/home/username" ....

So, could you add this support ?

Many thanks

smalot avatar Mar 19 '16 14:03 smalot