PHP Obtenha arquivos na pasta
$files = array_diff(scandir($path), array('.', '..'));
Annoying Anaconda
$files = array_diff(scandir($path), array('.', '..'));