That is not about getting file name from the url of current page. I have a php file like that.
Use basename() function in php to return a file name from the path.Use the code below
basename()
Hope this helps you