I keep reading it is poor practice to use the PHP close tag ?> at the end of the file. The header problem seems irrelevant in the following context (and this
?>
"Is there another good reason (other than the header problem) to skip the ending php tag?"
You don't want to inadvertently output extraneous whitepace characters when generating binary output, CSV data, or other non-HTML output.