$fh = opendir("images"); while ($image = readdir($fh)) { if ($image == "." || $image == "..") { echo "Rename $image
"; }