html代码 ob_clean();"/>
PHP头条
热点:

关于PHP重定向解决方法


关于PHP重定向
方法一:header("Location: index.php");  

  

方法二:echo "《script》window.location =\"$PHP_SELF\";《script》";  

  

方法三:echo "";  

  

方法四:
ob_start();  

?>  

html代码  


ob_clean();  

include("next.php");  

ob_end_flush();  

?>

还有没补充的。。

------解决方案--------------------
应该是木有了。。不过1,2,3都是跳转,意思是浏览器接收第一个页面http返回后向第二个页面做一次http get请求
4嘛就是个文件引入,不算跳转。
------解决方案--------------------


这个头像好可爱。。。
------解决方案--------------------
难道4种还不够用?
这张更可爱:http://my.csdn.net/my/album/detail/1074601
------解决方案--------------------
我觉得重定向,应该是第一条用得多:header("Location: index.php");

 比如301,404重定向等。header(""HTTP/1.0 404 Not Found"); 这些用在开源系统都比较常见。

------解决方案--------------------
没有了

www.phpzy.comtrue/phprm/48981.htmlTechArticle关于PHP重定向解决方法 关于PHP重定向 方法一:header("Location: index.php"); 方法二:echo "《script》window.location =\"$PHP_SELF\";《script》"; 方法三:echo " "; 方法四: ob_start(); ?> html代码 ob_clean();...

相关文章

PHP之友评论

今天推荐