www.webdeveloper.com
Results 1 to 6 of 6

Thread: how to execute a page every day at 7am

  1. #1
    Join Date
    Feb 2004
    Location
    Reston,va
    Posts
    49

    how to execute a page every day at 7am

    Hi,

    Is there a way I can execute a page (using html or javascript) daily at a given time - 7 am.

    Thanks,
    Leo

  2. #2
    Join Date
    Nov 2003
    Location
    Worthington, OH, USA
    Posts
    3,634
    If the browser is up then it's just a simple matter of calculating a time delay for the first occurance, and then setting up a routine to recalculate the delay after each subsequent run.

    setTimeout("window.open('someURL')",numSecs*1000);

  3. #3
    Join Date
    Feb 2004
    Location
    Reston,va
    Posts
    49
    Is it also possible to use the meta http-equiv="refresh" tag?

  4. #4
    Join Date
    Jun 2003
    Location
    here
    Posts
    4,551
    yeah:

    <META HTTP-EQUIV=Refresh CONTENT="1440; URL=?">
    If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
    The same applies to HTML and the forums [HTML][/HTML] tags.

  5. #5
    Join Date
    Mar 2004
    Posts
    3,056
    I think what you're actually looking for is what's called a "cron job". You would be best to ask your hosting provider with assistance in setting it up and getting it sorted how you want. Just write your script and what you want it to do, then contact your provider aabout how they support them.

  6. #6
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    That's what popped into my mind, too -- a daily cron that did 'rm page.html'.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles