I have a cron job that runs several times a day at full hours (:00). How can I only allow the PHP scripts to run during this time? I don't want someone else to be able to run my script. Here's what I thought of:
if (date('i', time()) > 2 || date('i', time()) < 58) {
die;
}
Are there better, more secure ways?