Revision: 59223
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 25, 2012 00:41 by iroybot
Initial Code
exec("java -jar some command 2>&1 &", $return, $code);
if ($code != 0) {
printf("Fuck! Something went wrong: %s (%s)", join('<br />', $return), $code);
} else {
print("Command successful.");
}
Initial URL
Initial Description
easy way of catching and displaying errors and return values from a exec() command back in PHP.
Initial Title
PHP Exec debugging
Initial Tags
php, error
Initial Language
PHP