I am trying to get the name of a particular image file that has already been uploaded, not the one being uploaded in the folder to delete the file.
I have looked up all over google. Please help me. It is the last increment i have to make before the end of the day.
I do have the imageurl as http://localhost/public_html/upload/123.jpeg
I have found this as my answer to delete the file but i do not know how to extract the file name
unlink($imagePath . $file_name);
Thank you