I am currently discussing MPR online storage.. solutions
No guarantee of anything yet, though.
No guarantee of anything yet, though.
<?php
php
function cmpFilesByDate($a, $b) {
if(filesize($a) == filesize($b))
return 0;
return (filesize($a) < filesize($b)) ? -1 : 1;
}
$dir = '/path/to/mpr';
$files = scandir($dir);
usort($files,"cmpFilesByDate");
foreach ($a as $key => $value) {
echo "$key:$value\n";
}
?>
<?php
php
$files = array();
$files_directory = "./mprdump";
$fdirectory = opendir("$files_directory");
while (false!==($file=readdir($fdirectory))) {
if (($file != ".") && ($file != ".." )) {
$files[$file] = filemtime("$files_directory/$file");
}
}
closedir($fdirectory);
clearstatcache();
arsort($files);
echo "<table>";
while(list($key, $val)=each($files))
echo "<tr><td>$key</td><td>".date("M j, h:ia", $val)."</td></tr>\n";
echo "</table>";
?>