posix_ctermid

(PHP 4, PHP 5, PHP 7, PHP 8)

posix_ctermidRestituisce il percorso del terminale

Descrizione

posix_ctermid(): string

Avviso

Questa funzione, al momento non è documentata; è disponibile soltanto la lista degli argomenti.

add a note add a note

User Contributed Notes 1 note

up
0
phpmanual at remove dot mark dot griffin dot email
7 years ago
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);
?>
To Top