Add:
$file = urlencode($dirArray[$index]);
print("<td><a href=\"delete.php?file=$file\">Delete $dirArray[$index]</a></td>");
In delete.php something like this:
$file = $_GET['file'];
unlink($file);
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875