php get directory

Solutions on MaxInterview for php get directory by the best coders in the world

showing results for - "php get directory"
Emilio
14 Jul 2018
1$currentDirectoryName = basename(__DIR__);
2echo 'Currently in the '.$currentDirectoryName .' directory <br><br>';
3
4$fullPath = dir(getcwd());
5echo 'The full path is: ' . $fullPath->path . '<br>';