I'm getting a php warning: cannot modify header information (but I have my include file before the html code!) [duplicate]
问题 This question already has answers here : How to fix “Headers already sent” error in PHP (11 answers) Closed 6 years ago . I'm getting this: Warning: Cannot modify header information - headers already sent by (output started at /www/zxq.net/a/l/e/alexchen/htdocs/index.php:12) in /www/zxq.net/a/l/e/alexchen/htdocs/common.php on line 13 right on my h2 tag. I have my common.php before the html code. I don't know what the problem is. Help! index.php: <?php include_once 'common.php'; ?> <!DOCTYPE