Multiple deletion of images
Hi, Sorry if I have missed the post that helps with this issue..
I have created a gallery/album page - but I need to be able to multiple delete selected images... how can I do this.
I have attached my page
Hi, Sorry if I have missed the post that helps with this issue..
I have created a gallery/album page - but I need to be able to multiple delete selected images... how can I do this.
I have attached my page
All of the images from an album are stored in a single directory... so you can use a recursive delete function to delete all of the files and folders in that directory...
Here is a function you can use to delete a directory and all of its contents:
function deleteDirectory($dir) {
if (!file_exists($dir)) return true;
if (!is_dir($dir) || is_link($dir)) return unlink($dir);
foreach (scandir($dir) as $item) {
if ($item == '.' || $item == '..') continue;
if (!deleteDirectory($dir . "/" . $item)) {
chmod($dir . "/" . $item, 0777);
deleteDirectory($dir . "/" . $item);
};
}
return rmdir($dir);
}
hi Ray,
i dont need to actually delete all images, if you check out the script I sent - there is a checkbox that does a multiple record delete, i also need it to delete the images of the same name.. and those only.
Thanks
to delete the images associated to the records being deleted in the multi record delete would take some hand coding to accomplish. respond back with a phone number of skype address, and we can work on this trough a screen sharing session.
Hi Jason, great skype is simon.schroeder3
thanks
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.