I have a string "/web/sitename/htdocs/members.sitename.net/area3/images/hotshots/2168/2168H001.JPG"
I need to grab only the filename off the end. The filename and the directory will change in length frequently(but the number of directories will be constant). I think the best way will be to use ereg_replace and replace everything before the 9th forward slash with nothing.
like
ereg_replace('^/././././././././', "", $file);
But that obviously isn't working