I am using some JavaScript to inspect a countdown hour minute target and then kick-off a php page:
window.setInterval(function() { // Set interval for checking
var date = new Date();
if (date.getHours() === 13 && date.getMinutes() === 31) { // Check the time
location.href = "real_live.php?lotnum=1";
}
}, 1000); // Repeat every 1000 milliseconds (1 second)
It's currently using the client side clock and functions perfectly. However, I need to use the server side clock and try as I may I have not found a working way to do this. Can you advise?