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

posix_getcwd

Description

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

Syntax

posix_getcwd(): string|false

Return

Returns a string of the absolute pathname on success, or 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