<?php
require("class.fuzzyfiledate.php");
$fd = new FuzzyFileDate();
GetFileList($files);
foreach ($files as $file)
{
$fd->GetFileDates($file);
echo "<br>times for {$file}<br><br>\n\n";
echo "ctime: {$fd->file[fuzzy_ctime]} ({$fd->file[ctime]})<br>\n";
echo "mtime: {$fd->file[fuzzy_mtime]} ({$fd->file[mtime]})<br>\n";
echo "atime: {$fd->file[fuzzy_atime]} ({$fd->file[atime]})<br>\n";
echo "<br><br>\n\n";
}
function GetFileList(&$files)
{
if (!($handle=@opendir(".")))
{
return;
}
while ($node = @readdir($handle))
{
$nodebase = @basename($node);
if ($nodebase!="." && $nodebase!="..")
{
if (is_file($node)) $files[] = $node;
}
}
}
?>
|