How can i fetch uploaded images in web server and also delete the ones i don't w


#1

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 don’t care about security too as i will be the one uploading the images from my admin.
I only want a simple scripts that will do this job, thanks everyone

index.php
[php]
Select image to upload:

[/php]

upload.php
[php]<?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.”;
}
?> [/php]


#2

And what have you tried?