so this code does what it should to list down files from a directory..but it also shows the directory..I want to remove it..is using scandir wrong?
<ul>
<?php echo "List of files"?>
<?php
$dir = 'kcfinder/upload/files';
$files = scandir($dir);
foreach($files as $ind_file){
?>
<li><?php echo $ind_file;?> </a> | <a href="includes/delete.php?file=<?=$ind_file?>">Delete</a></li>
<?php
}
?>
</ul>