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_ctermid - Manual
[go: Go Back, main page]

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

search for in the

posix_get_last_error" width="11" height="7"/> <posix_access
Last updated: Fri, 05 Sep 2008

view this page in

posix_ctermid

(PHP 4, PHP 5)

posix_ctermid制御する端末のパス名を得る

説明

string posix_ctermid ( void )

そのプロセスで現在制御している端末のパス名を表す文字列を作成します。 エラーが発生した場合は errno を設定します。この値を調べるには posix_get_last_error() を使用します。

返り値

処理に成功した場合は、現在制御している端末のパス名を表す文字列を返します。 それ以外の場合は FALSE を返し、errno を設定します。 この値を調べるには posix_get_last_error() を使用します。

例1 posix_ctermid() の例

この例は、現在の TTY へのパスを表示します。

<?php
echo "I am running from ".posix_ctermid();
?>



add a note add a note User Contributed Notes
posix_ctermid
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites