Retrieve the current working directory.
<?php echo getcwd(); ?> |
Result:
/home/php |
The getcwd() function returns the current working directory.
getcwd() |
Return Value: |
Returns the current working directory on success, or FALSE on failure. |
PHP Version: |
4.0+ |