mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 20:44:53 -04: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…
Add table
Add a link
Reference in a new issue