directory - Deleting images at my personal cloud with PHP -


i'm working @ personal cloud gf can store photos because icloud full.

basically, making works:

<?php $dirname = "uploads/"; $images = glob($dirname."*.{jpg,,jpeg,png,gif,jpg,jpeg,png,gif}", glob_brace);  usort($images, create_function('$b,$a', 'return filemtime($a) - filemtime($b);')); foreach($images $image) {  echo '  <a href="'.$image.'">  <img class="img-grid" src="'.$image.'" />  </a>'; }  ?> 

and looks this.

it's working needs tool deleting uploaded images. assuming using site @ smartphone, i've planned 3 ways of doing although dont know how it.


1st: "x" @ every image deleting

pros: easy // cons: touchscreen miss click


2nd: table images retrieved dir , 'delete' button

pros: easiest programming? // cons: ugly


3rd: "image preview" delete button when clicking

pros: beauty , useful // cons: weird mobile


so, 1 of 3 can solution , how it?

thanks in advance!

edit2: inserting "how it" edit3: sorry bad english, 'm br land



Comments