HTML / Javascript

I have a directory with a various number of images.

I would like to be able to display all images in that directory on one HTML page, select (by click on them) them and click a delete button at the bottom. When i click the delete button, all the images will be deleted from that directory. SIMPLE!

I have this php thus far, but I can't find a javascript or some other function to use that will allow me to delete the images from the server.

If you know what you are doing this should take about 10 minutes or less I figure, I just don't know what what I'm doing! lol....


$files = glob("videos/THUMBNAILS/*.*");

for ($i=0; $i<count($files); $i++)


$image = $files[$i];

$supported_file = array(



$ext = strtolower(pathinfo($image, PATHINFO_EXTENSION));

if (in_array($ext, $supported_file)) {

echo basename($image)."<br />"; // show only image name if you want to show full path then use this code // echo $image."<br />";

echo '<img src="'.$image .'" style="max-width: calc(100% - 20px); alt="Random image" />'."<br /><br />";

} else {





Skills: HTML, HTML5, Java, Javascript, PHP

See more: html javascript tag, javascript in html example, html script example, html script src, html javascript function, html javascript link, javascript examples with source code, javascript examples with code web design, flash actionscript html javascript, html javascript snowflakes, html javascript shopping carts, safari select html javascript bug, html javascript music player, nice websites html javascript, internet applications php css html javascript

About the Employer:
( 5 reviews ) Ft Walton Beach, United States

Project ID: #15309700

Awarded to:


Hello, I am sure I can help you with this issue. Actually I am a PHP expert. I can start working now and complete it in 10 ~20 minutes if you award me the job. Thanks Relevant Skills and Experience I have good know More

$15 USD in 1 day
(0 Reviews)

8 freelancers are bidding on average $23 for this job


hello hope you are doing well I am interested to work on this project. Gladly waiting to serve you with my extensive skills. Relevant Skills and Experience php js Proposed Milestones $30 USD - lets do it You nee More

$30 USD in 0 days
(234 Reviews)

Nice to meet you:) Relevant Skills and Experience I can help you with js and php Proposed Milestones $25 USD - 1

$25 USD in 1 day
(15 Reviews)

I am a web expert. I can end your job quickly. if you hire me, you will get good result. Thanks. Relevant Skills and Experience HTML, HTML5, Java, Javascript, PHP Proposed Milestones $25 USD - milestone no

$25 USD in 1 day
(8 Reviews)

I have read the project description and confident about providing you unique design. Like you rightly said this should be done in no time at all. Stay tuned, I'm still working on this proposal.

$25 USD in 0 days
(2 Reviews)
$25 USD in 1 day
(1 Review)

hi I can give you good solution for this project, If you want I can provide this good solution according to your budget plz contact me and then discuss more Relevant Skills and Experience HTML, HTML5, Java, Javascript More

$25 USD in 1 day
(0 Reviews)

A proposal has not yet been provided

$10 USD in 1 day
(0 Reviews)