Is there a way to automate a reset?

Discussion in 'HTML & Website Design' started by SteveZz, Dec 28, 2007.

  1. #1
    I have a script running on my site that tracks users hits in and out of my site. It has a reset link. I'd like to automate a process that could do a weekly reset to give an equal chance to all affiliates to get to the top of the affiliates list. Is there any way to automate something like this?
     
    SteveZz, Dec 28, 2007 IP
  2. pratham

    pratham Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you're using Unix, you could run a cron job weekly to call the reset-link ?
    Or have I not understood your question correctly ?
     
    pratham, Dec 28, 2007 IP
  3. SteveZz

    SteveZz Peon

    Messages:
    68
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    No, you understood correctly.

    How do you create a cron job. I've looked at it very lightly and am not sure how it works. And if it needs to log into the admin panel prior to visiting the reset link can that too be placed in a cron job?
     
    SteveZz, Dec 28, 2007 IP
  4. pratham

    pratham Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Which web-hosting control panel do you use ?

    A cron-job is essentially a unix command. So any link that you need to run should be accessible throught the Unix command line as well (PHP CLI for example).

    I think you could log-in as well using the cron job, but need to be pretty good with the unix command line.
     
    pratham, Dec 28, 2007 IP