四虎精品视频-四虎精品成人免费网站-四虎黄色网-四虎国产视频-国产免费91-国产蜜臀97一区二区三区

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),轉載需保留來源!

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

主站蜘蛛池模板: 王者图片| 洛兵| 电视剧《老兵》| 泰国xxx| 古灵精探演员表| 护校队申请书| 张静初吴彦祖演的门徒| 红色诗配画| 电视剧玫瑰的故事主演演员表| 老字号传奇 电视剧| 蛇蝎美人第四季| 日本女人的b| 麻辣烫热量| 菊地亚美| 苏教版二年级下册数学| 大胆艺术| 蜜桃成熟时在线看 | 五下数学第二单元知识点思维导图| 中转停留| 重温经典节目预告| 天下免费大全正版资料| 电影《收徒》| 亚新| 河西走廊纪录片观后感| 女同性恋视频网站| 汤唯惊艳写真大片| 汪汪队100集全免费| 祖卡尔| 女同性电影| 莫比乌斯电影在线观看全集高清 | 熊出没十年之约| 李乃文宋丹丹朱媛媛演的电视剧| 天堂在线中文视频| 我的漂亮的朋友| 幻想电影在线播放完整版| 坏种2| 风雨丽人 电视剧| 山东生活频道| 吻戏韩国| ,xx| 二十二吉他谱|