Re: php - radenie vypisu podla abc

From: Petr Pokorny (mail@pp21.cz)
Date: 04. 12. 2003, 22:35 CET


<?php
$dir="stats/";
if(is_dir($dir)):
  $myfiles = "";
  $thisdir = dir($dir);
  while($entry=$thisdir->read()):
   if((is_file("$dir$entry"))&&(substr(strtolower($entry),-4)==".txt")):
    $myfiles[] = $entry;
   endif;
  endwhile;
  sort($myfiles);
  foreach($myfiles as $entry):
    $lines=File("$dir$entry");
    echo "<b><u><a href=\"$dir$entry\">$entry</a></u></b>: " .
          Count($lines)." downloadov.<BR>";
    For ($i=0;$i<Count($lines);$i++):
     $items=Explode("#", $lines[$i]);
     echo " ".$items[0]." <b>User:</b> ".$items[1]." - ".$items[2] .
          " <b>Proxy:</b> ".$items[3]." - ".$items[4]."<br>";
    endfor;
    echo "<br>";
  endforeach;
endif;
?>

-pp21-



This archive was generated by hypermail 2.1.3 : 04. 12. 2003, 22:33 CET