用PHP实现"等待指定的时间,然后再跳转到指定页面".
也就是用php实现和HTML中的
<meta http-equiv="refresh" content="3; url=http://www.goalercn.com">一样的效果。
/**
@title:PHP定时跳转
@author:axgle
@date:2005-11-04
@功能:等待指定的时间,然后再跳转到指定页面(代替html meta方式)
*/
header("refresh:3;url=http://www.goalercn.com");
print('正在加载,请稍等...三秒后自动跳转~~~');
/*
补充说明:
若等待时间为0,则与header("location:http://www.goalercn.com")等效。
*/
?>