You can write directly to the tty (screen) even when the shell has redirected output, with:
<?php
$h = fopen(posix_ctermid(), "rb+");
fwrite($h, "Testing direct output\n");
fclose($h);
?>
You can write directly to the tty (screen) even when the shell has redirected output, with:
<?php
$h = fopen(posix_ctermid(), "rb+");
fwrite($h, "Testing direct output\n");
fclose($h);
?>