![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
定时任务
wbj16116
这个作者很懒,什么都没留下…
展开
-
linux 定时任务
登陆linux系统后 crontab -l //查看定时任务crontab -e //编织定时任务i //进入编辑*/3 * * * * /usr/bin/curl http://www.zszh777.com/index.php?g=dd //每三分钟访问一次59 23 * * * /usr/bin/curl http://gues...原创 2018-01-29 12:57:30 · 119 阅读 · 0 评论 -
PHP 每隔几秒执行一次
public function times(){ $time = time(); ignore_user_abort();//关闭浏览器后,继续执行php代码 set_time_limit(0);//程序执行时间无限制 $sleep_time = 5;//多长时间执行一次 while(($time+60)>...原创 2019-01-22 09:22:05 · 2307 阅读 · 0 评论