<?php
var_dump( posix_ttyname(STDOUT) );
?>
returns:
string(10) "/dev/pts/0"
When using pseudo terminal 1 (ie ssh)
![]() |
|
||||||||||
|
posix_ttynameDescriptionstring posix_ttyname ( int fd )
posix_ttyname
casper at bcx dot nl
19-Apr-2006 07:10
<?php |