I'm trying to grab my web address path and extract the extension of the filename.
The filename is located at the end of the address.
(e.g.) - images/path/filename.jpg
I want to extract the path so I'm just left with the extension after the period.
<?
$fullurl = $_SERVER['PHP_SELF'];
echo "$fullurl";
?>