streaming-website/lib/command-helper.php
2016-12-11 20:38:28 +01:00

15 lines
310 B
PHP

<?php
function stderr($str) {
$args = func_get_args();
$args[0] = $args[0]."\n";
array_unshift($args, STDERR);
call_user_func_array('fprintf', $args);
}
function stdout($str) {
$args = func_get_args();
$args[0] = $args[0]."\n";
array_unshift($args, STDOUT);
call_user_func_array('fprintf', $args);
}