PHP Manual

PHP function getcwd()

2019-09-11T08:04:04.000Z

Obsah článku

Availability in PHP 4.0

Gets the current working directory

Parameters

The function has no input parameters.

Return values

string

the current working directory on success, or false on
failure.



On some Unix variants, getcwd will return
false if any one of the parent directories does not have the
readable or search mode set, even if the current directory
does. See chmod for more information on
modes and permissions.

Additional resources

Official getcwd documentation

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
369.

V jiných jazycích

Status:
All systems normal.
2025