posix_ttyname

(PHP 3 >= 3.0.13, PHP 4, PHP 5)

posix_ttyname -- Determine terminal device name

Description

string posix_ttyname ( int fd )

警告

本函数暂无文档,仅有参数列表。


add a note add a note User Contributed Notes
casper at bcx dot nl
19-Apr-2006 10:10
<?php
   var_dump
( posix_ttyname(STDOUT) );
?>

returns:
string(10) "/dev/pts/0"

When using pseudo terminal 1 (ie ssh)