每隔100ms运行一次php脚本(run php script after every 100ms)
是否可以在每100毫秒后运行一个PHP脚本? 此脚本将检查数据库是否有更改,然后更改将反映到其他一些数据库中。 我已经使用触发器做了。 但是我想知道在没有使用Cron和Triggers的情况下是否还有其他方法可以做到这一点。 我将为此目的使用Linux。 谢谢
Is it possible to run a php script after every 100ms ? This script will check a database for changes and then the changes will be reflected into some other database. I am already doing it using Triggers. But I want to know if there is any other way to do it without using Cron and Triggers. I will be using Linux for this purpose. Thanks
原文:https://stackoverflow.com/questions/5762442
更新时间:2020-01-03 21:47
最满意答案
Running something every 100ms almost means that it runs all the time , might as well create a daemon that continuously loops and executes
or use triggers. Essentially on every database change it will copy to another table/db.
2011-04-23
相关问答
问题是您的客户端正在