The scandir( ) function takes a minimum of one parameter with an optional second.
<? $files = scandir(".", 1); var_dump($files); ?>