I know that glob can look for all files or only all directories inside a folder :
echo \"All files:\\n\"; $all = glob(\"/*\"); var_dump($all); echo \"Only d
There is an easier way, just one line:
$files = glob("/path/to/directory/*.{*}", GLOB_BRACE);
the {*} means all file endings, so every file, but no folder!