I need to get the name of the current file. I know how to use $_SERVER['PHP_SELF'] to get the full URL relative to the root, but how can I "extract" only the file name from the URL.
Example:
value returned through $_SERVER['PHP_SELF']
products/casting/170-008-01.html
value I want to "extract"
170-008-01
thanks,
peter