$read contiene i nomi di tutti i file. Solo che vorrei togliere un file da $read che è un file php (index.php).

quindi $read = $read - index.php