【发布时间】:2011-02-14 10:09:02
【问题描述】:
你知道如果你想在 PHP 中重定向一个用户你可以使用 header 函数:
header('Location: http://smowhere.com');
众所周知,在header 调用之后添加exit; 也是一个很好的做法,以防止执行其他php 代码。所以我的问题是:header-location 调用之后的代码能否有效执行?在哪些情况下?恶意用户能否完全忽略header('Location..') 调用?怎么样?
【问题讨论】:
标签: php redirect header location