How can I get the current directory name that I am in? For example, if I am in /ra-apps/documentation/vorfa/Deliverables/Admin Tools, How can I print just the Admin Tools part of the directory?
Thanks
Ok, I got it working using
$current_dir = getcwd();
But this lists the entire directory, all I want is to show the Directory name, not the entire string. Any ideas??