中文字幕日韩一区二区_国产一区二区av_国产毛片av_久久久久国产一区_色婷婷电影_国产一区二区精品

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

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

主站蜘蛛池模板: 久久亚洲国产精品日日av夜夜 | 日韩欧美国产综合 | 中文字幕日韩一区 | 日韩一区二区在线视频 | 欧美综合在线观看 | 国产区精品 | 九九精品在线 | 一级片免费视频 | 欧美日韩在线精品 | 亚洲国产精品成人久久久 | 亚洲午夜电影 | 日韩在线观看一区二区三区 | av香蕉 | 欧美一区二区三区在线视频 | 国产一级片av| 免费高清av | 国产欧美日韩一区 | 日韩精品国产精品 | 欧产日产国产精品视频 | 久久久一二三区 | 国产乱码精品一区二区三区av | 日韩欧美精品在线 | 欧美日韩国产在线观看 | 一区二区三区av | 91精品中文字幕一区二区三区 | 日韩亚洲一区二区 | 日韩精品一区二区三区视频播放 | 99精品电影 | 亚洲成人av | 9久9久9久女女女九九九一九 | 99日韩 | 亚洲在线一区二区 | 欧美亚洲另类在线 | 91精品久久久久久久久 | 日韩欧美精品一区 | www一级片| 国产精品亚洲一区二区三区在线 | 黄a免费网络 | 精品久久ai电影 | 日韩一区二区三区av | 男女羞羞视频大全 |