This question is an exact duplicate:
- Run js server side [closed] 1 reply
How can I execute javascript function every 20-30 seconds (randomly from 20 to 30) without client participation? I have the usual hosting.
This question is an exact duplicate:
How can I execute javascript function every 20-30 seconds (randomly from 20 to 30) without client participation? I have the usual hosting.
This question has been marked as a duplicate of an existing one.
Your task is best done using websocket, which means using something other than php. For example, node.js, java. I can even advise a good tool-kit to create a web application on java, vertx.io . The authors were inspired by node.js, it's convenient and pleasant to work with it, I just use it for one project. And on php, this problem is quite difficult to solve, you can not do without crutches.
Rachet - not heard, no? - Alexey ShimanskySource: https://ru.stackoverflow.com/questions/478413/
All Articles