magicz9412
New Member
- Messages
- 26
- Reaction score
- 0
- Points
- 0
Hey, i was just wondering, do you keep deleting all my crons? or is there a glitch or something?
<?php
//make sure that php won't time out
@set_time_limit(0);
//get current time
$minute = intval(date('i'));
$hour = intval(date('H'));
require('cron_minute.php'); //run the every minute cron job. Note that if you aren't on prime, this will only run once every 5 minutes
if($minute % 5 == 0) {
require('cron_fivemins.php');
}
if($minute == 0) {
require('cron_hour.php');
}
if($hour == 0) {
require('cron_day.php');
}