i want to write a page that will traverse a specified directory.... and get all the files in that directory...
in my case the directory will only contain images and dis
You could as others have suggested check every file in the dir, or you could use glob to identify files based on extension.