私がやろうとしているのは、画像の年齢を確認することです.60分以上経過している場合は、別のphpページを実行して画像を取得します.60分未満の場合は何もしません....
スクリプトは 2 番目のページ (radartest.php) を開いて画像を更新するために実行するわけではないため、スクリプトとして実行するように指示するコマンドが必要です。
<?php
$imagename='./radar/auck0.png';
$cachetime = 3600;
//Start the caching of the images........
if (file_exists($imagename) and filemtime($imagename) + $cachetime > time()) {
echo("radartest.php");
} else {
null; //do nothing
}
?>