Cron Jobs (1 or 2)

Discussion in 'PHP' started by oo7ml, Sep 22, 2007.

  1. #1
    I'm looking for info on how to do this but i am just wondering would it be a hard task to complete:

    I want to create a query that will select the account that has the highest score, then display the persons photo on a my home page everyday. I want this task to be carried out each day at midnight.

    Am i pushing the boat out here a little or is this quite easy

    1. very difficuly

    or

    2. quite easy
     
    oo7ml, Sep 22, 2007 IP
  2. tamen

    tamen Peon

    Messages:
    182
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Quite easy. But then, thats me. I don't know what your skill-level is.

    The easy way is to make a normal php-page that does what you wan't and then call it every day at midnight. Either in a browser or via cron.

    This command will probably do what you want after you create the script:
    curl http://domain.tld/yourscript.php

    Stick it in a cronjob that fires every midnight and you're golden.
     
    tamen, Sep 22, 2007 IP