Please answer this simple SPAM challenge: six minus six? (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 commandFor example:<?php$output = shell_exec('ls file_not_exist 2>&1 1> /dev/null');?>
<< Back to user notes page