hi
i have a script (below) which lists all the images in my images folder
on my website - I was wondering if somebody could give me some idea of how to add a delete link to the following script so that i can easily delete each image.
many thanks
simon
<?php
$upload_dir = "images/";
$opendir =opendir($upload_dir);
while ($file = readdir($opendir)) {
if($file != '..' && $file !='.' && $file !=''){
if (!is_dir($file)){
$all_stuff = "$file delete<br>";
echo "$all_stuff";
}
$i++;
}
}
closedir($opendir);
clearstatcache();
?>