Execute function every day in a specific hour without cronjobs

732 views Asked by At

In my website I want that every day in a specific hour the server will run a function, and in every few minutes run other function.

While the second one is easy, (hosting the time of the last update in the DB, and in every page refresh see how much time passed, divide it with the amount of minutes, use floor, and then I know how much times I should run the function), I have no idea what to do with the first function. The hour might be changed, so I can't just check how much times 24 hours passed.

What can I do?

Thanks!

0

There are 0 answers