If I have the web address:
http://mysite/images/screenshot1/weddingnature.jpg
how do grap the weddingnature.jpg filename. Actually I'm looking to just get the extension for use in a if/else statement.
I tried using
<?
$fullurl = $_SERVER["HTTP_REFERER"];
echo "$fullurl";
?>
But that doesn't work because it's trying to I suppose retrieve the previous referrer address. I'd like to take the web address at the page I'm currently on. Is that possible?
Thanks