title: How can i fetch uploaded images in web server and also delete the ones i don't want?
body: <p>I am uploading images in the "images" folder on my web server and I want all uploaded images to be visible in a table in index.html page with a delete button for each uploaded image so that i can be able to delete any image i want to delete. I don't want anything to do with database and i will be the one uploading the images from my admin.
  I only want a simple scripts that will do this job, thanks everyone</p>
  
  <pre><code>index.php
  
  &lt;form name="upload" action="upload.php" method="POST" enctype="multipart/form-data"&gt;
      Select image to upload: &lt;input type="file" name="image"&gt;
      &lt;input type="submit" name="upload" value="upload"&gt;
  &lt;/form&gt;
  
       upload.php
  
  &lt;?php
  $uploaddir = 'images/';
  $uploadfile = $uploaddir . basename($_FILES['image']['name']);
  if (move_uploaded_file($_FILES['image']['tmp_name'], $uploadfile)) {
      echo "Image succesfully uploaded.";
  } else {
      echo "Image uploading failed.";
  } 
  ?&gt;  
  </code></pre>