四虎精品视频-四虎精品成人免费网站-四虎黄色网-四虎国产视频-国产免费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),轉載需保留來源!

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

主站蜘蛛池模板: 滕子萱| 在线观看三级视频| 香港之夜在线观看完整版| 大甜甜| 张绍荣| 无声真相电影免费观看| 茶馆剧本完整版| 贝利亚抱住奥特之母完整版| 长安长安朗诵报名入口| 漂流者| 104房间| 真实游戏完整版高清观看| 大秧歌电视剧演员表| 《红色》电影| 我的漂亮的朋友| 张艺馨个人资料| 《可爱的小鸟》阅读答案| 台湾早期经典怀旧内衣模特走秀 | 张子恩| 李采潭龙谷| 徐贤电视剧| 一块奶酪预习| 尹雪喜演的全部电影免费观看| 小学三年级英语同步跟读app| xiuren秀人网站入口| 情动电影| 离歌吉他谱| av电影网| 冰之下| 家庭理论电影| 电影白上之黑| 百字明咒标准读诵慢念| 南圭丽| 富二代| 红海行动2虎鲸行动电影在线观看| 荒唐的山区母子| 湖北经视频道| jeanette| 女同性视频| 第三套广播体操七彩阳光完整版视频| 孙源|