Semplicemente con
Codice PHP:
if($file != "." && $file != "..")
{
   
// Stampo il file