Completed

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....

<?php

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

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

{

$image = $files[$i];

$supported_file = array(

'jpg',

);

$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 {

continue;

}

}

?>

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:

stanislav103

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)
0.0

8 freelancers are bidding on average $23 for this job

Max01

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)
6.5
polarjin2017

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)
4.5
jarki2017

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)
2.9
sanmiawi

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)
2.2
$25 USD in 1 day
(1 Review)
1.1
kendouzu

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)
0.0
trush143

A proposal has not yet been provided

$10 USD in 1 day
(0 Reviews)
0.0