View Problem

Process each file in a directory

ExpandDiskEdit
php
if ($dh = opendir($dir)) { // if we have access
while (($file = readdir($dh)) !== false) { // as long as there is a file
echo "name: $file\n"; // echo its name
}
closedir($dh); // close the dir
}

Submit a new solution for php
There are 16 other solutions in additional languages (clojure, cpp, csharp, erlang ...)