Get the current working directory:
<?phpecho getcwd()?>result:
/home/phpThe getchwd() function returns the current working directory.
getcwd();
| Return value: | If successful, the current working directory is returned. Returns FALSE on failure. |
|---|---|
| PHP version: | 4.0+ |