I have been trying to do random cron jobs where I choose the year month date and hour but the minute is randomised.
My first attempt was to run the cron every min and then compare a random date with todays date:
I inserted a random date into a database column fake_time
in the format 2014-10-26 17 rand(0,59)
. In the php page where I run the cron every min:
if($row["fake_time"] == date("Y-m-d H i")){
//do stuff
}
And this worked perfectly. But then I found out that I can't run the cron every min because my hostor (hostgator) wont allow me to! Have you got any ideas on how I can do this any other way?
Or should i just set it up on https://www.easycron.com/ instead?