Nov. 24, 2002 */ $directory = "YOURDIRCTORY"; $dir = opendir($directory); $num = 0; while($file = readdir($dir)) { if(strlen($file) == strrpos($file, '~')+1) { continue; } if ((strcmp($file, ".")) && (strcmp($file, "..")) && (strcmp($file,"index.php"))) { $files[$num] = $file; $num++; } } closedir($dir); rsort($files); for($j = 0 ; $j < $num ; $j++) { $filepath = $directory."/".$files[$j]; $fp = fopen($filepath,"r"); $buf = fread($fp, filesize($filepath)); print "$buf"; fclose($fp); print "


"; } ?>