$dir ="insideDir"; $dh = opendir($dir); while (($file = readdir($dh)) !== false) { echo "$file
\n"; } closedir($dh); ?>