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