mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-05 04:47:29 +02:00
Add PHP exec wrapper.
This commit is contained in:
@@ -72,4 +72,13 @@ function load_commented_json($file) {
|
|||||||
return json_decode($str, true);
|
return json_decode($str, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function exec_cmd($cmd) {
|
||||||
|
|
||||||
|
$lines = array();
|
||||||
|
$rc = null;
|
||||||
|
exec($cmd, $lines, $rc);
|
||||||
|
|
||||||
|
return $lines;
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Reference in New Issue
Block a user