Home > PHP > Function > Directories > getcwd()

getcwd()

getcwd - Gets the current working directory

Syntax

string getcwd ()

Arguments

-

Description

Gets the current working directory.

Version

PHP 4, 5

Return value

Returns the current working directory on success, or FALSE on failure.