Cannot modify header information - headers already sent by
原因:输出内容在header() 之前
例如
<?php
echo "enen\n";
header("user","张三");
// PHP Warning: Cannot modify header information - headers already sent by (output started at
正确:
<?php
header("user","张三");
echo "enen\n";