Jump core code implementation.
Copy the Code code as follows:
if (Isset ($link))
{
Header ("http/1.1 303 See other");
Header ("Location: $link");
Exit
}
Here is a description of an article abroad.
Hey Chris:
On Wed, Jan, 2005 at 12:28:19pm-0500, Csnyder wrote:
>
> >//Process form
> ...
>//Redirect to results page
> Header (' http/1.1 303 see other ');
> Header (' Location:result.html ');
> Exit (' Form submitted, continue. ');
>?>
Good point. But some feedback. The Optimail syntax is:
Process form
// ...
Redirect to results page
Header (' status:303 see Other ');
Header (' location:http://www.jb51.net/result.html ');
?>
Here's why ...
Using "Status:" In the header are better because the resulting headers from
Apache is more correct:
http/1.1 303 See other
Instead of
http/1.1 303
Additionally, one doesn ' t really know which version of HTTP is being used,
So why potentially cause problems by trying to guess.
The specs say location headers must has a complete URI of them, not just
The path.
Lastly, you don ' t want any output after the location header.
Later,
--dan
The above describes the PHP downloadphp implementation code to jump to the download file Responseredirect, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.