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
if ($handle = opendir('.')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { echo "$file\n"; } } closedir($handle); }
use readdir