Execute help command and check its output : System Command : Development PHP Source Code


PHP Source Code » Development » System Command »

 

Execute help command and check its output





<?php
$command = "help";
$logged_in = explode(' ', shell_exec($command));
for ($i = 0; $i < count($logged_in); $i++) {
   if ($argv[1== trim($logged_in[$i])) {
      $found_user = 1;
   }
}
if($found_user) {
   print "User $argv[1] is currently logged inn";
else {
   print "User $argv[1] is NOT currently logged inn";
}
?>
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Development
» System Command