//************************************** // Name: A file indexer / lister // Description:this list alls the files in a the current directory // By: gmtt_dan (from psc cd) // // // Inputs:None // // Returns:None // //Assumes:None // //Side Effects:None //************************************** <? $maindir = "." ; $mydir = opendir($maindir) ; $exclude = array( "index.php") ; while($fn = readdir($mydir)) { if ($fn == $exclude[0] || $fn == $exclude[1]) continue; echo "<br><a href='$fn'>$fn</a>"; } closedir($mydir); ?>