Unnamed
public php v1 · immutable<?php$dir = "ke";if (is_dir($dir)){ if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { echo "<pre>"; if (substr($file, -3) == "txt") { $filut = array($file); $aikaleimat = array(fileatime('ke/'.$file)); asort($aikaleimat); print_r($aikaleimat); foreach ($aikaleimat as $indeksi => $arvo) { echo $arvo . "\t" . $filut[$indeksi] . "\n"; } } } echo "</pre>"; $foo = array(); closedir($dh); } }?>