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

php download.php實現(xiàn)代碼 跳轉(zhuǎn)到下載文件(response.redirect)

跳轉(zhuǎn)核心代碼實現(xiàn)。
復(fù)制代碼 代碼如下:
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技術(shù)php download.php實現(xiàn)代碼 跳轉(zhuǎn)到下載文件(response.redirect),轉(zhuǎn)載需保留來源!

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

主站蜘蛛池模板: 欧美一区二区三区视频 | 国产精品女同一区二区久久夜 | 一本久道热中字伊人 | 一区二区三区免费视频播放器 | 精品国产福利久久久 | 久久精品国产99精品国产2021 | 久久中文字幕视频 | 日韩欧美不卡片 | 日本精品中文字幕在线播放 | 色呦呦在线播放 | 国产成人综合亚洲欧洲色就色 | 精品国产一区二区三区香蕉事 | 国产美女一区二区三区 | 亚洲小视频在线播放 | 色婷五月天| 精品国偷自产在线 | 亚州免费一级毛片 | 亚洲精品天堂在线观看 | 日韩综合nv一区二区在线观看 | 国产精品免费大片一区二区 | 色版视频在线观看 | 午夜激情视频在线观看 | 热99精品视频 | 91麻豆精品国产自产在线 | 国产精品欧美在线不卡 | 亚洲国产精品自产在线播放 | 国模青青丰满人体大尺度展示 | 日本高清中文字幕一区二区三区a | 日本特级a禁片在线播放 | 亚洲欧美日韩在线精品一区二区 | 亚洲天堂成人在线观看 | 亚洲成人一区二区 | 免费视频色 | 91社区在线观看精品 | 日本精品久久久久久久久免费 | 91精品国产自产在线观看高清 | 美女免费精品视频在线观看 | 视频一区二区三区在线 | 国产一区二 | 午夜影院日韩 | 激情国产视频 |