Migrated first 6 gists.
This commit is contained in:
1
whoami.php/README.md
Normal file
1
whoami.php/README.md
Normal file
@@ -0,0 +1 @@
|
||||
Testing things...
|
||||
14
whoami.php/whoami.php
Normal file
14
whoami.php/whoami.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
echo '<pre>';
|
||||
|
||||
// Outputs all the result of shellcommand "ls", and returns
|
||||
// the last output line into $last_line. Stores the return value
|
||||
// of the shell command in $retval.
|
||||
$last_line = system('whoami', $retval);
|
||||
|
||||
// Printing additional info
|
||||
echo '
|
||||
</pre>
|
||||
<hr />Last line of the output: ' . $last_line . '
|
||||
<hr />Return value: ' . $retval;
|
||||
?>
|
||||
Reference in New Issue
Block a user