note 49180 deleted from function.system by derek

From: Date: Wed, 19 Jan 2005 07:51:52 +0000
Subject: note 49180 deleted from function.system by derek
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-83609@lists.php.net to get a copy of this message
Note Submitter: bedek at o2 dot pl Reason: useless ---- 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.

« previous php.notes (#83609) next »