phpでファイルの更新時刻からの経過時間を表示する例。

<html>
<head>
<title>ファイルの更新時刻からの経過時間を表示する</title>
</head>
<body>
<?php


$fileName = "test.php";
setlocale(LC_TIME, "ja");

if (file_exists($fileName)) {


    $string1 = strtotime(date("Y/m/d H:i:s", filemtime($fileName)));
    echo "<p>最終更新時刻:".date("Y/m/d H:i:s", $string1);


    $string2 = strtotime(date("Y/m/d H:i:s"));
    echo "<p>現在の時刻:".date("Y/m/d H:i:s", $string2);


    $string = ($string2 - $string1) / 60;
    echo "<p>現在の時刻との差は".$string."分です";

} else {

    echo "ファイルが見つかりません";

}

?>

48 Comments

  1. dich vu marketing says:

    … [Trackback]

    […] Read More on that Topic: dragon-ark.com/archives/433 […]

  2. eBay music sale says:

    … [Trackback]

    […] Find More Information here on that Topic: dragon-ark.com/archives/433 […]

  3. best CBD oil says:

    … [Trackback]

    […] Read More Info here on that Topic: dragon-ark.com/archives/433 […]

  4. exchange online plan 2 says:

    … [Trackback]

    […] Info on that Topic: dragon-ark.com/archives/433 […]

  5. hp sunucu servis says:

    … [Trackback]

    […] Information to that Topic: dragon-ark.com/archives/433 […]

  6. hackear whatsapp online says:

    … [Trackback]

    […] Read More Info here on that Topic: dragon-ark.com/archives/433 […]

  7. best cc dumps says:

    … [Trackback]

    […] Info on that Topic: dragon-ark.com/archives/433 […]

  8. Sunucu Teknik Destek says:

    … [Trackback]

    […] Information to that Topic: dragon-ark.com/archives/433 […]

  9. world market link says:

    … [Trackback]

    […] Read More on to that Topic: dragon-ark.com/archives/433 […]

  10. Windshield marketing ideas says:

    … [Trackback]

    […] Read More Info here on that Topic: dragon-ark.com/archives/433 […]

  11. elojob says:

    … [Trackback]

    […] Read More on on that Topic: dragon-ark.com/archives/433 […]

  12. sagame says:

    … [Trackback]

    […] There you can find 82290 more Information to that Topic: dragon-ark.com/archives/433 […]

  13. sbo says:

    … [Trackback]

    […] Find More on that Topic: dragon-ark.com/archives/433 […]

  14. UK Weekend getaways says:

    … [Trackback]

    […] Find More here on that Topic: dragon-ark.com/archives/433 […]

  15. local fucking website no registration says:

    … [Trackback]

    […] There you will find 25093 more Info on that Topic: dragon-ark.com/archives/433 […]

  16. สล็อตเว็บตรง says:

    … [Trackback]

    […] Find More on that Topic: dragon-ark.com/archives/433 […]

  17. Buy Springfield Firearms Online says:

    … [Trackback]

    […] Read More on that Topic: dragon-ark.com/archives/433 […]

  18. ล่องเรืออยุธยา says:

    … [Trackback]

    […] Read More here on that Topic: dragon-ark.com/archives/433 […]

  19. kardinal stick says:

    … [Trackback]

    […] There you can find 95890 more Info to that Topic: dragon-ark.com/archives/433 […]

  20. 파워볼사이트 says:

    … [Trackback]

    […] Find More to that Topic: dragon-ark.com/archives/433 […]

  21. Obama Runtz says:

    … [Trackback]

    […] Find More on to that Topic: dragon-ark.com/archives/433 […]

  22. cannahome market says:

    … [Trackback]

    […] There you can find 62935 more Info to that Topic: dragon-ark.com/archives/433 […]

  23. สล็อตวอเลท ไม่มีขั้นต่ำ says:

    … [Trackback]

    […] Info on that Topic: dragon-ark.com/archives/433 […]

  24. UFABET168 says:

    … [Trackback]

    […] Here you can find 19485 more Info on that Topic: dragon-ark.com/archives/433 […]

  25. Câmeras Privê Nomes says:

    … [Trackback]

    […] Find More Information here on that Topic: dragon-ark.com/archives/433 […]

  26. sendvic panel says:

    … [Trackback]

    […] Find More Info here to that Topic: dragon-ark.com/archives/433 […]

  27. บอลโลกโซนยุโรป says:

    … [Trackback]

    […] Info on that Topic: dragon-ark.com/archives/433 […]

  28. 【PHP】メモ:ファイルの更新時刻からの経過時間を表示する | Dragon-Ark says:

    Buy Proxies

    phpでファイルの更新時刻からの経過時間を表示する例。 [php] ファイルの更新時刻から…

  29. buy mastercard gift card with crypto anonymous 11 says:

    … [Trackback]

    […] Here you can find 12675 more Information on that Topic: dragon-ark.com/archives/433 […]

  30. https://krajowy.biz/ says:

    … [Trackback]

    […] Find More Information here to that Topic: dragon-ark.com/archives/433 […]

  31. PUBG hacks says:

    … [Trackback]

    […] Find More Information here on that Topic: dragon-ark.com/archives/433 […]

  32. best cvv shop 2022 says:

    … [Trackback]

    […] Here you can find 39774 more Info on that Topic: dragon-ark.com/archives/433 […]

  33. maxbet says:

    … [Trackback]

    […] Information on that Topic: dragon-ark.com/archives/433 […]

  34. ขายเฟสบุ๊คยิงแอด says:

    … [Trackback]

    […] Info to that Topic: dragon-ark.com/archives/433 […]

  35. Sig Sauer P220 Equinox says:

    … [Trackback]

    […] Read More here on that Topic: dragon-ark.com/archives/433 […]

  36. iptv testline says:

    … [Trackback]

    […] There you will find 82591 more Info on that Topic: dragon-ark.com/archives/433 […]

  37. sbo says:

    … [Trackback]

    […] Here you will find 52402 additional Information to that Topic: dragon-ark.com/archives/433 […]

  38. Remington 700 For Sale says:

    … [Trackback]

    […] Read More on that Topic: dragon-ark.com/archives/433 […]

  39. sbo says:

    … [Trackback]

    […] Find More here on that Topic: dragon-ark.com/archives/433 […]

  40. Where can I buy psyilocybin shrooms?, says:

    … [Trackback]

    […] Information on that Topic: dragon-ark.com/archives/433 […]

  41. รับซื้อรถโฟล์คลิฟท์ says:

    … [Trackback]

    […] Information to that Topic: dragon-ark.com/archives/433 […]

  42. youtube news says:

    … [Trackback]

    […] Information on that Topic: dragon-ark.com/archives/433 […]

  43. Alphabay Marktplatz says:

    … [Trackback]

    […] Find More on on that Topic: dragon-ark.com/archives/433 […]

  44. สล็อต pg เว็บตรง says:

    … [Trackback]

    […] Read More on on that Topic: dragon-ark.com/archives/433 […]

Leave a Reply