一区二区久久-一区二区三区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),轉載需保留來源!

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

主站蜘蛛池模板: 亚洲精品网站在线 | 美女性色| 国产精品激情综合久久 | 2021一本久道 | 亚洲欧美国产18 | 精品国产欧美精品v | 亚洲高清视频网站 | 加勒比伊人| 国产91色拍 | 伊人婷婷色 | 欧美日韩国产亚洲一区二区 | 玖玖国产精品视频 | 美女把屁股扒开让男人桶视频 | 亚洲国产精品久久久天堂麻豆 | 久久加勒比 | 中文字幕亚洲激情 | 999国内精品永久免费视频 | 色久在线 | 精品国产一区二区三区不卡在线 | 国内视频一区二区 | 国产精品视频第一区二区三区 | 日韩激情影院 | 伊人网大香 | 久久道| 一二三四日本高清 | 久久国产麻豆 | 72成人网| 欧美一级一片 | 久久精品无码一区二区日韩av | 97在线观看成人免费视频 | 欧美地区一二三区 | 亚洲一区在线视频 | 久久久一区二区三区不卡 | 黄视频在线 | 美女张腿男人桶免费视频 | 久草热视频在线观看 | 久久窝窝国产精品午夜看15 | 加勒比一本大道香蕉在线视频 | 精品视频在线观看 | 欧美成人三级网站在线观看 | 香蕉视频国产精品 |