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

posix_getcwd

Description

The posix_getcwd of POSIX for PHP pathname of the current directory.

Syntax

posix_getcwd(): string|false

Parameters

Return

Returns a string of the absolute pathname on success. Returns false and sets errno which can be checked with posix_get_last_error() on error.

Examples

1 · void

<?

$return = posix_getcwd();

echo $return;

?>
/home/public_html
HomeMenu