SEARCH (the times are in UTC)
Please check search history to see if you already can find your data interval among these files.
include "preg_find.php";
$monthstr = array("January", "February", "March", "April", "May", "June", "July"
, "August", "September", "October", "November", "December");
$t = gmmktime();
if (isset($_POST["to_year"]))
$to_y = $_POST["to_year"];
else
$to_y = gmdate("Y", $t);
if (isset($_POST["to_month"]))
$to_m = $_POST["to_month"];
else
$to_m = gmdate("m", $t);
if (isset($_POST["to_day"]))
$to_d = $_POST["to_day"];
else
$to_d = gmdate("d", $t);
if (isset($_POST["to_hour"]))
$to_h = $_POST["to_hour"];
else
$to_h = 23;
if (isset($_POST["to_minute"]))
$to_i = $_POST["to_minute"];
else
$to_i = 59;
if (isset($_POST["from_year"]))
$from_y = $_POST["from_year"];
else
$from_y = gmdate("Y", $t-86400);
if (isset($_POST["from_month"]))
$from_m = $_POST["from_month"];
else
$from_m = gmdate("m", $t-86400);
if (isset($_POST["from_day"]))
$from_d = $_POST["from_day"];
else
$from_d = gmdate("d", $t-86400);
if (isset($_POST["from_hour"]))
$from_h = $_POST["from_hour"];
else
$from_h = 0;
if (isset($_POST["from_minute"]))
$from_i = $_POST["from_minute"];
else
$from_i = 0;
?>
$path = realpath('./cache-files');
$files = preg_find('/./', $path, PREG_FIND_RECURSIVE|PREG_FIND_RETURNASSOC|PREG_FIND_SORTMODIFIED|PREG_FIND_SORTDESC);
echo "Ten last searches
";
$i=0;
$files=array_keys($files);
foreach($files as $file){
if ($i>=10)
break;
$fname = strrchr($file,"/");
echo "cache-files".$fname."
";
$i++;
}
?>
Back to temperature page