note 74261 added to function.exec

From: Date: Mon, 02 Apr 2007 05:03:45 +0000
Subject: note 74261 added to function.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-125013@lists.php.net to get a copy of this message
How can i use PHP to config my Linux system? I want to use with user is root, but when i do " echo exec('whoami'); ", the result is apache - it not is root, how can i use user root. I want to config my system, or, simply, make dir in /root. But i can, please help me. ---- Server IP: 69.147.83.197 Probable Submitter: 58.186.65.40 ---- Manual Page -- http://www.php.net/manual/en/function.exec.php Edit -- https://master.php.net/note/edit/74261 Del: integrated -- https://master.php.net/note/delete/74261/integrated Del: useless -- https://master.php.net/note/delete/74261/useless Del: bad code -- https://master.php.net/note/delete/74261/bad+code Del: spam -- https://master.php.net/note/delete/74261/spam Del: non-english -- https://master.php.net/note/delete/74261/non-english Del: in docs -- https://master.php.net/note/delete/74261/in+docs Del: other reasons-- https://master.php.net/note/delete/74261 Reject -- https://master.php.net/note/reject/74261 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#125013) next »