Ejemplo n.º 1
0
 static function command($cmd, $args)
 {
     if ($args !== null) {
         $cmd = php_Sys::escapeArgument($cmd);
         $_g = 0;
         while ($_g < $args->length) {
             $a = $args[$_g];
             ++$_g;
             $cmd .= " " . php_Sys::escapeArgument($a);
             unset($a);
         }
     }
     $result = 0;
     $output = "";
     system($cmd, $result);
     return $result;
 }
 static function stamp()
 {
     return php_Sys::time();
 }