How do I go about returning just the file name from a url?
For example:
http://my.site.com/dir1/dir2/dir3/index.php
I want to return just index.php.
I tried parse_url but, but I don't know how to get rid the rest of the path. I should also mention that the urls will be different each time.