Page refresh @ midnight

Discussion in 'Web Design & Coding' started by SPeedY_B, Oct 7, 2002.

  1. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    I have a PHP based calender which is composed of tables and the current date/day has a different bgcolor, now this calender obviously highlights the date upon load, but i have recently added it to active desktop and as my computer is always on, i need some way to refresh the page at midnight, is there any way i can do this ???
     
  2. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    <META HTTP-EQUIV="refresh" content = "3600; URL=c:\Program Files\madmatt\Active Desktop\calendar.php">

    That refreshes every 60 minutes. Using that tag there isn't a way to make it refresh at a certain time, just an interval. When I put my calendar together I couldn't think of a way to make it update at midnight every day without writing 20+ lines of code. Sorry. =\
     
  3. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    write a simple little program that would refresh the HTML for you, and add it to task manager. *shrug*
     
  4. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    i went for the meta tag in the end, nice 1.5hr timer :p

    Altho i noticed on active desktop that the page it set to "Make Available Offline" and there's a schedule for that, surely adding a daily schedule to Syncronise the page would update it / the calender?
     
  5. dave holbon

    dave holbon Moderator

    Messages:
    1,014
    Location:
    London England
    Call TimerTicks from the OS
     
  6. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    I never even thought of that. Good call.
     
  7. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England