note 49180 added to function.system

From: Date: Wed, 19 Jan 2005 07:43:25 +0000
Subject: note 49180 added to function.system
Groups: php.notes 
Request: Send a blank email to php-notes+get-83607@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.system.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49180 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49180&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49180&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49180&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49180&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49180&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49180&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#83607) next »