Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

posix_ctermid

Description

The posix_ctermid of POSIX for PHP gets the path name of controlling terminal.

Syntax

posix_ctermid(): string|false

Return

Returns the string of the pathname to the current controlling terminal on success. Otherwise false is returned and errno is set, which can be checked with posix_get_last_error().

Examples

1 · void

<?

$return = posix_ctermid();

echo $return;

?>
/dev/tty
HomeMenu