read()) { if ($anEntry != "." && $anEntry != "..") { if (strstr($anEntry,$packageprefix) && strstr($anEntry,".html")){ $scenarioname=substr($anEntry,0,-5); $scenarios[$index]=$scenarioname; $index++; } } } $scenarioCount=count($scenarios); if ($scenarioCount==0){ echo "Results being generated."; } else{ sort($scenarios); echo "

$packageprefix* ($scenarioCount scenarios)

"; for ($counter=0;$counter$scenarios[$counter]
"; echo "$line"; } } aDirectory.closedir(); ?>