I have a page that lists the contents of a directory on my server. It lists all the files and subdirectories. What I want to do is at the top of the page, show the directory I am currently in. I am using the explode command to seperate on the "/" in the directory name. How would I go about displaying the last directory name in this array? For example, I am in the directory /prgjr1/ra-apps/documentation/vorfa/Deliverables/Admin Tools/. How could I just display Admin Tools at the top of my page ( or whatever directory I am in).
I have the following command:
$indexuri = explode("/", $REQUEST_URI);
print "<center><b><u>".urldecode($indexuri[6])."</u></b></center>\n";
this only displays what is in the 6th array, but I need it do the last directory name in the array.
Thanks