I have to build a script that will perform a certain actions at specified intervals, and I don't know how to do it.
I have a list of events something like her:
walk every 30 minutes
run every 10 minutes
talk once a day
sit once a week
I have four actions that need to be performed at different intervals, I have in a database the time when the task was last performed, the interval, and the future time when the action must be performed.
Because I can't use cron I am thinking of using a page that reloads every 1 minute as the clock to compare the actual time with the all tasks future time, if they are equal or future time is lower that the actual time then perform the task.
What do you think is this a good method or there are more simple ways of doing this?