I try to do random cron jobs where I select the date and hour of the year of the month, but the minute is randomized.
My first attempt was to run cron every min, and then compare a random date with the current date:
I inserted a random date into the database column fake_timein format 2014-10-26 17 rand(0,59). On the php page where I run cron every min:
if($row["fake_time"] == date("Y-m-d H i")){
//do stuff
}
And it worked perfectly. But then I found out that I cannot start cron every min, because my host (host agent) will not let me! Do you have ideas on how I can do this in any other way?
Or should I just set it up at https://www.easycron.com/ instead?
source
share