PHP getcwd() Function
PHP Directory Reference Manual
Example
Get the current working directory:
Result:
/home/php
Definition and Usage
The getchwd() function returns the current working directory.
Syntax
getcwd();
Technical Details
| Return Value: | Returns the current working directory on success, or FALSE on failure. |
|---|---|
| PHP Version: | 4.0+ |
PHP Directory Reference Manual