dsfgds4215 2019-03-01 16:57
浏览 107

数据发布到服务器时自动刷新

I've been googling for the best part of 3 hours, maybe I'm not using the right keywords, but I can't seem to find what I'm looking for.

I have a php website (codeigniter) and I have a solid foundation in PHP, HTML and JS.

I have built and API which other websites post to and currently, a basic bootstrap php page which outputs the results. Currently I am (rather crudely) using an auto-refresh plugin on chrome to see the latest results (set to every 2 seconds).

But for my needs this is too slow.

Is there some service / platform that exists where when my API receives a post, it can push the change to my basic webpage without needing to manually refresh it?

Ideally, I need to get this down to less than 1 second, it is doing mission critical work :)

Thanks!

  • 写回答

1条回答 默认 最新

  • dongzhiman2162 2019-03-01 17:06
    关注

    If you just want to refresh it periodically ( in example every one second):

    <meta http-equiv="refresh" content="1">
    

    Maybe look at iframes if you don't want to refresh everything.

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题
  • ¥20 yolov5自定义Prune报错,如何解决?
  • ¥15 电磁场的matlab仿真
  • ¥15 mars2d在vue3中的引入问题
  • ¥50 h5唤醒支付宝并跳转至向小荷包转账界面
  • ¥15 算法题:数的划分,用记忆化DFS做WA求调
  • ¥15 chatglm-6b应用到django项目中,模型加载失败
  • ¥15 CreateBitmapFromWicBitmap内存释放问题。
  • ¥30 win c++ socket
  • ¥15 C# datagridview 栏位进度