How to run a Run a PHP Script for every half an hour with out cronjob ?
3条回答 默认 最新
dousui7410 2013-12-17 06:03关注You can do it checking last update date for a file (that acts as flag).
index.php (or any file)
<?php $stat = stat("flag.txt"); if(check if your $stat['mtime'] has more of 30 mins of last modification) { //run your script touch("flag.txt") } ?>本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报