I have an url which contains various POST-DATA in it And an image file at last.
My link is : http://website-link.com/?page=gf_signature&signature=565dbca63791e5.87676354.png
I want to seperate the 565dbca63791e5.87676354.png
from the url and seperate the extension (.png) from it.
I can do it :but it is from only plain URL:
$path = "/home/httpd/html/index.php";
$file = basename($path); // $file is set to "index.php"
$file = basename($path, ".php"); // $file is set to "index"