title: Get the name of an image file from the root folder. The name of the folder is upload
body: <p>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.</p>
  
  <p>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. </p>
  
  <p>I do have the imageurl as <code>http://localhost/public_html/upload/123.jpeg</code> I have found this as my answer to delete the file but i do not know how to extract the file name</p>
  
  <pre><code>unlink($imagePath . $file_name);
  </code></pre>
  
  <p>Thank you</p>