<?php $handle = opendir ('./pics'); while (false !== ($file = readdir($handle))) { if($file != "." && $file != ".."...
Separate names with a comma.