<?php
var_dump( posix_ttyname(STDOUT) );
?>
returns:
string(10) "/dev/pts/0"
When using pseudo terminal 1 (ie ssh)
(PHP 4, PHP 5, PHP 7, PHP 8)
posix_ttyname — Determina il nome del device per il terminale
<?php
var_dump( posix_ttyname(STDOUT) );
?>
returns:
string(10) "/dev/pts/0"
When using pseudo terminal 1 (ie ssh)