mirror of
https://github.com/lrsjng/h5ai
synced 2025-12-21 16:22:58 +01:00
Add PHP exec wrapper.
This commit is contained in:
parent
f72f7efe46
commit
a75f1b61bc
1 changed files with 9 additions and 0 deletions
|
|
@ -72,4 +72,13 @@ function load_commented_json($file) {
|
|||
return json_decode($str, true);
|
||||
}
|
||||
|
||||
function exec_cmd($cmd) {
|
||||
|
||||
$lines = array();
|
||||
$rc = null;
|
||||
exec($cmd, $lines, $rc);
|
||||
|
||||
return $lines;
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Reference in a new issue