Migrated first 6 gists.

This commit is contained in:
Miguel Astor
2023-01-13 18:18:55 -04:00
parent 92fcabcfba
commit 8af706e97d
16 changed files with 290 additions and 0 deletions

1
whoami.php/README.md Normal file
View File

@@ -0,0 +1 @@
Testing things...

14
whoami.php/whoami.php Normal file
View 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;
?>