Mam następujący problem. Ten skrypt wyświetla mi pliki pdf z katalogu. Teraz chciałbym usuwać te pliki za pomocą checkboxa. Najlepiej kilka na raz. Czy może mi ktoś podesłać jakieś gotowe rozwiązanie?
<?php
try {
$str = '<ul>';
$di = new DirectoryIterator('./dokumenty_dostawy/');
foreach ($di as $file) {
if (!$file->isDot() && !$file->isDir())
$str .= '
<table align = "left"class = "stripeMe" width=97%>
<tr>
<td><a href="' . $file->getPathname() . '">' . $file->getFilename() . '</a></td>
</tr>
</table>';
}
$str .= '</ul>';
} catch (Exception $e) {
}
?>