可能重复:
PHP已发送头信息
PHP已发送头信息
收到以下错误:
"Warning: Cannot modify header information - headers already sent by (output started at..."
对于下面这行代码:
echo '<center>Current Time is '. gmdate("H:i A") . ' GMT (Greenwich Mean Time or UTC)<br />';
如果我将其注释掉,它就会在下一个echo语句处报错。为什么PHP如此讨厌我的echo语句?
这是我在HTML底部的include:
<div id="saveCanForm" width="100%">
<?php include('savereport.php'); ?>
</div>