Tohle by melo projit podadresar foto a zapsat do promenne jen soubory
koncici na "s.jpg".
Trochu si to pouprav a mas to.
-pp21-
$FotoDir = Dir ("./foto");
// vypise seznam vsech fotek v adresari
$i = 0;
$FotoFiles = "" ;
while ($soubor = $FotoDir->Read()):
if (SubStr ($soubor, StrLen ($soubor)-5, 5) == "s.jpg"):
// do seznamu zapise jen ty, co konci na "s.jpg"
$FotoFiles[$i] = $soubor ;
$i++ ;
endif;
endwhile;
$FotoDir->Close();
Sort ($FotoFiles); // seznam setridi
This archive was generated by hypermail 2.1.2 : 04. 10. 2001, 08:42 CEST