add '2>&1 1> /dev/null' to the end of your shell command. For example: <?php $output = shell_exec('ls file_not_exist 2>&1 1> /dev/null');
確定! 回上一頁