To clarify the title question, I have code such as:
<img src='gallery/main.php?g2_view=core.DownloadItem&g2_itemId=8161&g2_serialNumber=2&g2_GALLERYSID=5b24df90ee45f0e01795a3c01a1d634b'>
with the file actually residing in the file system under my webroot. Is there any way in PHP to retrieve the images real path being served such as:
<img src='images/gallery/album1/file1.jpg'>
Eg someFunction(longURL) ==> images/gallery/album1/file1.jpg
Thank you,