4
Recently asked this question, but I found it kind of vulnerable to use the codes that were answered there, summarizing the best answer: Creates a Cookie with a Time and hides the button, after this time runs out, the button returns. (If any daredevil clean up the cookies
it can use the system again).
Well I’d like to do the same using Cron
but so far I don’t understand what they are, and how to use them to run a script every certain time, taking a look here in the OS, I found this topic, but for me it is in "Japanese", I would like to know a simple example of cron
, in the case with this reasoning:
- Check the number of people sent, (first question link to understand).
- Check whether the amount passed the Limits in the case I used in the query
LIMIT 10
. - Run the code, and hide the button (this with javascript I know how to do).
- When finished executing the code shows a message "Go back to x minutes"
- After x minutes the reactive button.
I hope you explain what it is cron
and a basic example of how to do what I want, understood?
Opa, already gave a lighted here, let’s see what I can do with your answer. Have two, which I get, mark as solved.
– WillBB