Jump to content

Reload page on the hour (server time)


Kibit

Recommended Posts

I currently using this code to display timed content...

 

<?php

$now = date("D_H:00"); 


//Sun
$shows['Sun_18:00']['title']="Bla Bla Bla";
$shows['Sun_19:00']['title']="Bla Bla Bla";	
***SNIP***

echo $shows[date("D_H:00")]['title'];  


?>

 

Since I'm already calling the server time and on the hour as well I was wondering if there was anything I could add to this to make the page reload on the hour so even if a visitor stays on the site during change they are allways delivered the correct content?

Link to comment
https://forums.phpfreaks.com/topic/126327-reload-page-on-the-hour-server-time/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.