php有没有像ASP里面的Response.redirect一样的页面转向函数 有的。header("location:b.php"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 范例一: 本例用来重导用户到 PHP 的官方网站。<?phpHeader("Location: http://www.php.net"); exit;?>范例二: 欲让用户每次都能得到最新的资料,而不是 Proxy 或 cache 中的资料,可以使用下列的标头header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT");header("Cache-Control: no-cache, must-revalidate");header("Pragma: no-cache");范例三: 让用户的浏览器出现找不到文件的信息。<?phpheader("Status: 404 Not Found");?>范例四: [email protected] (28-Apr-1999) 提供让用户下载文件的范例。header("Content-type: application/x-gzip");header("Content-Disposition: attachment; filename=some-file.tar.gz");header("Content-Description: PHP3 Generated Data"); 可以用header前不能有输出.也可以用include包含一个文件.include('文件名'); echo "<META HTTP-EQUIV=REFRESH CONTENT='1;URL=index.php'>"; echo "<script language='javascript'> location.href='连接文件路径';alert('Loging Again ');</script>"; learning....................................... 最近在用PHP做一个团购导航网站,现在遇到性能问题 php突然间无法连接sqlsever2000 第一次来,与stuman同感 小问题一个 关于serv-u的密码算法.50分请求帮忙. 如何知道表单提交的变量名及其值? md5加解密问题~~ 请我以下功能用PHP如何实现啊?谢谢! 我怎么定义这些变量???? 如何删除多维数组中的一组数组 php能用sql server吗? 用过蓝狐文章管理系统的朋友请帮个忙。
<?php
Header("Location: http://www.php.net");
exit;
?>范例二: 欲让用户每次都能得到最新的资料,而不是 Proxy 或 cache 中的资料,可以使用下列的标头
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");范例三: 让用户的浏览器出现找不到文件的信息。
<?php
header("Status: 404 Not Found");
?>范例四: [email protected] (28-Apr-1999) 提供让用户下载文件的范例。
header("Content-type: application/x-gzip");
header("Content-Disposition: attachment; filename=some-file.tar.gz");
header("Content-Description: PHP3 Generated Data");