Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: posix_ttyname - Manual
[go: Go Back, main page]

downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

posix_uname" width="11" height="7"/> <posix_times
Last updated: Fri, 10 Sep 2010

view this page in

posix_ttyname

(PHP 4, PHP 5)

posix_ttyname端末のデバイス名を調べる

説明

string posix_ttyname ( int $fd )

ファイル記述子 fd 上でオープンしている現在の端末デバイスへの絶対パスを文字列で返します。

パラメータ

fd

ファイル記述子。

返り値

成功した場合に fd の絶対パスを表す文字列、 失敗した場合に FALSE を返します。



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

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

When using pseudo terminal 1 (ie ssh)

posix_uname" width="11" height="7"/> <posix_times
Last updated: Fri, 10 Sep 2010
 
 
show source | credits | sitemap | contact | advertising | mirror sites