1 ) { for ( $p = 1 ; $p <= $s[0] ; ++$p ) { $tied = $th."/ographapplet_$kisa[nimi]"."_$p.txt"; //print $tied."
"; if ( file_exists($tied) ) { $kisat[] = array( "name" => $kisa[otsikko]." $p. päivä", "file" => $tied ); } } } else { $tied = $th."/ographapplet_$kisa[nimi].txt"; //print $tied."
"; if ( file_exists($tied) ) { $kisat[] = array( "name" => $kisa[otsikko], "file" => $tied ); } } } ?> \n"; print "\n"; ++$i; } ?>