read()) !== false) { $upper = ucwords($file); if(is_dir($mydir->path.$file) == true && $file != '.' && $file != '..') { $runningtotal++; if ($runningtotal < $nVarSize) { $col1 .= "
  • $upper
  • "; } else { $col2 .= "
  • $upper
  • "; } } } $mydir->close(); echo $col1; echo $col2; ?>