This is a discussion on How to set BASH variable form PHP which is working in safe_mode ? within the PHP Language forums, part of the PHP Programming Forums category; Hello How to set BASH variable form PHP which is working in "safe_mode" ? .... and to check if it'...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello
How to set BASH variable form PHP which is working in "safe_mode" ? .... and to check if it's set for sure ? I find out that I should create directory for binaries in home direcotry of user and assign this direcotry to PHP variable - safe_mode_exec_dir Then I've copyed to this direcotry "/usr/local/bin/bash" and "/usr/bin/grep". This works fine WITHOUT "safe_mode": PHP code: <?php system('BOOM=blowwww && set | grep BOOM'); ?> it returns: BOOM=blowwww but in "safe_mode" there is no output in web-browser and no errors appear in error log file. |