|
|
getcwd()Getcwd returns current directory name with path. This function returns true on successful and returns false if it failed to get any result.
Here is a sample code.
echo getcwd();
The output is here in Linux server
/home/myuserid/public_html
In a windows platform the output will be
J:\php_files\t\dir
|
| |
| |
|
|
|
|
|