php get directory

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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>';