- if (!headers_sent($filename, $linenum)) {
- @header("Location:$url");
- exit;
- }
- else
- {
- $t = "在文件$filename第$linenum行有字符输出,不能跳转,请更正 ";
- echo $t;
- exit;
- }
- //该片段来自于http://www.codesnippet.cn/detail/12122012925.html
来源: http://www.codesnippet.cn/detail/12122012925.html