php中判断shell_exec执行结果

$shell = "wget -O despath sourcepath &&  echo 'success' ";
$shellExec = shell_exec($shell);
var_dump($shellExec);
if($shellExec){echo 'ok';}

  

posted @ 2018-08-10 14:01  这是一个很好的名字  阅读(3973)  评论(0编辑  收藏  举报