mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-03-21 13:00:10 +01:00
Add PHP exec wrapper.
This commit is contained in:
parent
f72f7efe46
commit
a75f1b61bc
@ -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…
x
Reference in New Issue
Block a user