Please answer this simple SPAM challenge: three minus zero? (Example: nine)
Here is a easy way to grab STDERR and discard STDOUT: 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'); ?>
<< Back to user notes page