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);?>
(PHP 4, PHP 5, PHP 7, PHP 8)
posix_ctermid — Restituisce il percorso del terminale
Questa funzione, al momento non è documentata; è disponibile soltanto la lista degli argomenti.
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);?>