PHP获取今天开始和结束的时间戳
$t = time();
$start = mktime(0,0,0,date("m",$t),date("d",$t),date("Y",$t));
$end = mktime(23,59,59,date("m",$t),date("d",$t),date("Y",$t));PHP header 跳转
header('Refresh:2,Url=http://www.baidu.com');
echo '<h1>请先登录,<font color="#FF0000">2s</font> 后跳转……</h1>';//PHP内JS输出代码
echo ("<script language=\"JavaScript\">alert(\"修改成功!\");location.href='machine.php?sb_id={$sb_id}';</script>");
//返回上一界面,并刷新缓冲
echo "<script>alert('退出成功!');location.href='".$_SERVER["HTTP_REFERER"]."';</script>";
//延时跳转到上一界面,并刷新
header("Refresh:1;url={$_SERVER['HTTP_REFERER']}");