headers sent in php after output STILL working
问题 I have this simple script: this is output! <?php header("Location: http://www.google.com"); ?> You believe it or not it works and I get no warnings either! The manual says no output should be done before sending headers or no headers will be actually sent. But it does work anyway and it is annoying me. 回答1: This is possible because of output buffers. 来源: https://stackoverflow.com/questions/13180649/headers-sent-in-php-after-output-still-working