PHP Obtenha arquivos na pasta

$files = array_diff(scandir($path), array('.', '..'));
Annoying Anaconda