Service

A crude way to get a function executed at an less than the minimum limit from Cron (1 min)

$i = 0;
while ($i < 12) { // run 12 times each minute
 echo "hello";
 sleep(5); // wait 5 seconds each loop
 $i++;
}

Should execute every 5 seconds if Cron launches it every 1 minute.

Leave a Reply