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

我一直在谷歌搜索3小时的最佳时间,也许我没有使用正确的关键字,但 我似乎无法找到我正在寻找的东西。</ p>

我有一个php网站(codeigniter),我有一个坚实的PHP,HTML和JS基础。</ p>

我已经构建了其他网站发布的API,目前是一个输​​出结果的基本bootstrap php页面。 目前我(相当粗略地)使用chrome上的自动刷新插件来查看最新结果(设置为每2秒)。</ p>

但是对于我的需求,这太慢了。</ p>

是否存在一些服务/平台,当我的API收到帖子时,它可以将更改推送到我的基本网页,而无需手动刷新它?</ p>

< p>理想情况下,我需要将其降低到不到1秒,它正在执行关键任务工作:) </ p>

谢谢!</ p>
</ div>

展开原文

原文

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!

dourangdz750379
dourangdz750379 谢谢先生-这正是我想要的。谢谢!
一年多之前 回复
dsqpx86002
dsqpx86002 查看websockets。
一年多之前 回复

1个回答

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.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐