This is the way that I figured it out, which btw brøken led me to however left-handedly.
This is likely the best test of what a newbie I am but it works. If there is a "cleaner" way please let me know.
$file = "/www/docs/ss/index.html";
//where $file is the name we want to remove all slashes & sub-dir's to yeild just the name.
$delims = "/";
$word = strtok ($file, $delims);
while (is_string ($word)) {
if ($word)
$word = strtok ($delims);
if ($word != "") {
$cleanedup = $word; // $cleanedup is the root file name all cleaned up.
}
echo $cleanedup;
... would yield index.html
That removes all slashes out of names like "/www/docs/ss/index.html" and yields "index.html".
Like I said, it is a newbie way but it worked.
Thanks for the direction brøken .