Realtime Cooldown HTML and PHP [closed]

First I have two file like this…

Thats My File

Inside Index.html, Like this…

var ValidTime = new Date('Jun 13, 2024 16:44:00').getTime();
var TimesOut = setInterval(function() {
  var DateNow = new Date().getTime();
  var Duration = ValidTime - DateNow;
  var Day = Math.floor(Duration / (1000 * 60 * 60 * 24));
  var Hours = Math.floor((Duration % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
  var Minute = Math.floor((Duration % (1000 * 60 * 60)) / (1000 * 60));
  var Second = Math.floor((Duration % (1000 * 60)) / 1000);
  document.getElementById('TimeRemaining').innerHTML = Day + ' Day ' +
    Hours + ' Hours ' + Minute + ' Minute ' + Second + ' Second ';
  if (Duration < 0) {
    clearInterval(TimesOut);
   // 'Target.txt > text change Using PHP Fopen + Fwrite Method'
  } else {
  //  'Nothing'
  }
}, 1000);
<p id='TimeRemaining'></p>

I try to add Jquery and use form + onsubmit + Ajax, i modify thats code and it worked.
but, thats is not my goal.

I want everything PHP based. **
i want Like This

Impossible to do it?**