скрипт в cron на каждые 15 секунд file_put_contents($file, intval(trim(file_get_contents($file)))+1 );