During testing of my website I was noticing that I was receiving this error multiple times:
Warning: Cannot modify header information - headers already sent by (output started at /home/example/public_html/file.php:100)
When I examined the error (searched here on SO), I discovered that the whitespace lines after my ?>
delimiter was causing the issue.
My question is: Why does the whitespace after the PHP delimiter cause this error when there is no more code? Shouldn't the file stop reading when there is no more content and just a PHP ending delimiter ?
- I know that whitespace after the
?>
delimiter causes an error, that is not my question; thus not relating to a duplicate question.