PHP redirection Method 1: header (& quot; Location: index. php & quot;); & nbsp; Method 2: echo & quot; & lt; script & gt; window. location & quot; $ PHP_SELF & quot; & lt; script & gt; & quot; & nbs about PHP redirection
Method 1: header ("Location: index. php ");
Method 2: echo "script window. location = \" $ PHP_SELF \ "; script";
Method 3: echo" ";
Method 4:
Ob_start ();
?>
Html code
Ob_clean ();
Include ("next. php ");
Ob_end_flush ();
?>
What else is not added ..
------ Solution --------------------
It should be the wood .. However, both 1, 2, and 3 are Redirection. This means that the browser receives the first http response and then sends an http get request to the second page.
4. it is a file introduction, not a jump.
------ Solution --------------------
This avatar is cute...
------ Solution --------------------
Are the four types not enough?
This cute: http://my.csdn.net/my/album/detail/1074601
------ Solution --------------------
I think redirection should be the first one that is used much more: header ("Location: index. php ");
For example, 301,404 redirection. Header ("HTTP/1.0 404 Not Found"); these are common in open-source systems.
------ Solution --------------------
No