note 86956 added to function.shell-exec
| From: | redtuugii at yahoo dot com | Date: | Wed, 12 Nov 2008 11:30:15 +0000 |
| Subject: | note 86956 added to function.shell-exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-146415@lists.php.net to get a copy of this message | ||
if you want get exit status
$command = 'ls -lpas';
// Execute the shell command
$shellOutput = shell_exec($command.' > /dev/null; echo $?');
//return execute status;
echo trim($shellOutput);
----
Server IP: 69.147.83.197
Probable Submitter: 202.170.95.2
----
Manual Page -- http://www.php.net/manual/en/function.shell-exec.php
Edit -- https://master.php.net/note/edit/86956
Del: integrated -- https://master.php.net/note/delete/86956/integrated
Del: useless -- https://master.php.net/note/delete/86956/useless
Del: bad code -- https://master.php.net/note/delete/86956/bad+code
Del: spam -- https://master.php.net/note/delete/86956/spam
Del: non-english -- https://master.php.net/note/delete/86956/non-english
Del: in docs -- https://master.php.net/note/delete/86956/in+docs
Del: other reasons-- https://master.php.net/note/delete/86956
Reject -- https://master.php.net/note/reject/86956
Search -- https://master.php.net/manage/user-notes.php