well i have got this code to show what fiels are in my folders but i would like an option to be able to delete the pictures and edit the names of them also, can you help me out.

<?PHP
$dir = 'foler name here';
$handle = opendir($dir);
while(false !== ($file = @readdir($handle))){
if(($file != '.') && ($file != '..')){
echo '<a href="'.$dir.'/'.$file.'" target="_blank">'.$file.'</a><br />';
}
}
?>