一区二区久久-一区二区三区www-一区二区三区久久-一区二区三区久久精品-麻豆国产一区二区在线观看-麻豆国产视频

php download.php實現代碼 跳轉到下載文件(response.redirect)

跳轉核心代碼實現。
復制代碼 代碼如下:
if (isset($link))
                {
                    Header("HTTP/1.1 303 See Other");
                    Header("Location: $link");
                    exit;
                }



下面是國外的一篇文章說明。
Hey Chris:
On Wed, Jan 26, 2005 at 12:28:19PM -0500, csnyder wrote:
>
> <?php
> // process form
> ...
> // redirect to results page
> header( 'HTTP/1.1 303 See Other' );
> header( 'Location: result.html' );
> exit( 'Form submitted, <a href="result.html">continue</a>.' );
> ?>
Good point. But some feedback here. The optimail syntax is:
<?php
// 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 is better because the resulting headers from
Apache are 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 have a complete URI in them, not just
the path.
Lastly, you don't want any output after the location header.
Later,
--Dan

php技術php download.php實現代碼 跳轉到下載文件(response.redirect),轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 青青国产成人久久激情91麻豆 | 亚洲成a人 | 欧洲在线 | 毛片特黄 | 色综色天天综合网 | 亚洲一区二区观看 | 久久久青草青青国产亚洲免观 | 精品国产日韩久久亚洲 | 91在线国产观看 | 亚洲短视频在线观看 | 久久se精品动漫一区二区三区 | 国产专区青青草原亚洲 | 久久久网久久久久合久久久久 | 国产精品欧美在线不卡 | 久久er国产精品免费观看2 | 日本一区二区视频在线观看 | 亚洲国产成人精品女人久久久 | 国产精品福利无圣光一区二区 | 精品国产乱子伦一区 | 毛片区 | 91视频a| 午夜视频在线观看国产www | 不卡国产00高中生在线视频 | 爱搞逼综合| 亚洲一区二区三区影院 | 亚洲欧美日本一区 | 国产美女在线精品免费观看 | 麻豆久久精品免费看国产 | 国产麻豆免费观看91 | 国产中文字幕在线免费观看 | 一区二区视频在线观看 | 久久五月女厕所一区二区 | 国产免费黄色大片 | 一二三四在线视频社区1 | 国产成人黄色 | 亚洲第一视频在线播放 | 久久精品国产线看观看亚洲 | 九九九九九九精品免费 | 精品国产乱码久久久久久浪潮 | 久久亚洲综合伊人 | 国产偷2018在线观看午夜 |