看手册上说header()调用之前,前面不能有任何输出,但是我测试发现,完全可以有呀?我空了,还多,还是可以执行。那为什么最新版的手册一直都还没更新呢?http://www.php.net/manual/en/function.header.php
我是这样写的
<html>
111
<?php
/* This will give an error. Note the output
* above, which is before the header() call */
header('Location: http://www.example.com/');
exit;
?>