#!/usr/bin/php
<?php
exec("ls“, $output);
echo json_encode($output);
echo "\r\n";
$a = shell_exec("ls");
echo json_encode($a);
echo "\r\n";
#!/usr/bin/php
<?php
exec("ls“, $output);
echo json_encode($output);
echo "\r\n";
$a = shell_exec("ls");
echo json_encode($a);
echo "\r\n";
本文标题:PHP执行linux命令获取执行结果
本文链接:https://www.haomeiwen.com/subject/csfhxctx.html
网友评论