Creating PHP auto task...

Discussion in 'PHP' started by dsv10, Mar 9, 2011.

  1. #1
    Hello...


    i am looking for a way to make a website run with some delay after user submitting some order...

    it goes like this: after the user have submitted something on the site it should wait a few minutes and than run a script.

    i know about corn but my server gives me the option of using cron not more often then every 15 minutes, in any way i dont even need it to run every 15 minutes - just need somthing (some way or direction at least) to make the website able to receive a type of call, then wait 5-10 minutes and run a script.

    any idea?
     
    dsv10, Mar 9, 2011 IP
  2. kajfat

    kajfat Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    make a list of tasks (update witch each order) (use mysql db for example).

    then write a script, running every 15 minutes via cron. script will read tasks from "task list" and do them.

    the delay will be 1-15 minutes as you can see. thats exactly what you need, if i understood you correctly
     
    kajfat, Mar 10, 2011 IP