PHP重定向暂停 [英] PHP Redirect Pause

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

问题描述

在使用PHP将用户重定向到另一个HTML/PHP页面之前,如何将页面暂停一定时间?

How do I pause a page for a certain amount of seconds before redirecting the user to another HTML/PHP page using PHP?

推荐答案

此方法应该有效:

<?php
header('Refresh: 5; URL=http://yoursite.com/page.php');
//other code
?>

,并允许您的用户查看您想要的任何类型的输出(您将在X秒内被重定向,如果不单击则单击,等等.)

and will allow your user to see whatever kind of output you want (You'll be redirected in X Seconds, click yere if dont, etc..)

这篇关于PHP重定向暂停的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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