使用PHP刷新页面 [英] Refresh a page using PHP

查看:76
本文介绍了使用PHP刷新页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何定期使用PHP刷新页面?如果我不能用PHP做到这一点,那么推荐的最佳方案是什么?

How can I refresh a page using PHP periodically? If I can not do it by PHP, what is the best recommended scenario?

推荐答案

您可以使用PHP:

header("Refresh:0");

它将刷新当前页面,如果需要将其重定向到另一页面,请使用以下命令:

It refreshes your current page, and if you need to redirect it to another page, use following:

header("Refresh:0; url=page2.php");

这篇关于使用PHP刷新页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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