Answer the question
In order to leave comments, you need to log in
Why doesn't PHP throw an error on extra characters?
The question is strange, but I'm wondering why php does not react in any way to errors in the code?
Actually, I read the following:
If you (accidentally) leave a newline character after the PHP closing tag ('?>'), you may see an error message such as "Headers already sent" for example. So if you see this error in the output, double check your PHP file for a space or newline after the closing tag.
Answer the question
In order to leave comments, you need to log in
where did you read that? php does not interpret anything outside of <?php ?> tags. and just add them to the output stream
It may also be due to the fact that output_buffering is enabled.
Or the output of error messages is disabled.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question