如何在PHP中每隔30秒调用一个方法? [英] how can i call a method every 30 seconds in php?

查看:65
本文介绍了如何在PHP中每隔30秒调用一个方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在php中每隔30秒调用一个方法?

解决方案

睡眠 [ ^ ]可能是个不错的选择。

见:

每20秒执行一次PHP功能 [ ^ ]

方法运行 [ ^ ] br />
另一个好处是:

Run-every-30-seconds [ ^

how can i call a method every 30 seconds in php?

解决方案

Sleep[^] could be a good option.
See:
execute php function every 20 seconds[^]
method to run every 30 seconds while the application is active[^]
Another good one is:
Run-every-30-seconds[^]


这篇关于如何在PHP中每隔30秒调用一个方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆