PHP execute command via shell

$shellCmd = shell_exec("SHELL COMMAND");
// Execute shell command and print out the result
echo "
$shellCmd
";

你可能感兴趣的:(PHP execute command via shell)