Ok here goes. This is a short snippit which will give you the file name at the end of the URL. The snippint uses the pathinfo function. I might make it a function in a few days.
This is a public code snippet repository. Share your snippets with other developers to gain valuable feedback. Tag your snippets with keywords to make them easy to find.