acele bir şekilde yazdım denedim hocam bilginiz olduğu için gerisi sizde
<?php 

$dizin = "yuklenenler"; 

//Uzantı alma fonksiyonu 
function ext($text)  {  
    $text = strtolower(pathinfo($text, PATHINFO_EXTENSION)); 
    return $text;  } 

echo '<div class="title"><b>Sistem</b> üzerinde yer alan dosyalar aşağıda listelenmiştir.</div>'; 

if ($handle = opendir("$dizin") or die ("Dizin acilamadi!")) { 

    while (false !== ($file = readdir($handle))) { 
    $filetype = ext($file); 

        if(is_file($dizin."/".$file)) { //eger bir dosya ise ve bizim belirlediğimiz uzantıya sahipse 

        $class = ($css % 2) ? "satir1" : "satir2"; // her satira farklı class 

        echo ' 
        <div class="'.$class.'"><h3><a href="'.$dizin.'/'.$file.'">'.$file.'</a>
		<a href="?komut=sil&dosya='.$dizin.'/'.$file.'">sil</a>
		
		</h3></div>';  

        $css++; 

        }  

    } //while end 

    closedir($handle); 

} 
$komut= $_GET['komut'];
$dosya= $_GET['dosya'];
if($komut=="sil") {
	
unlink($dosya);

}
	



?>