PHP: Why is this forced mime download adding 2 extra empty lines?
问题 I have a PHP script I wrote to create a .txt tab delimited file. I need to have this forced downloaded to the web browser. It does all this, but when I compare the file to the source the forced downloaded on contain two extra blank lines. Here is the code: // Force download of the tab del .txt file to the web browser: header('Content-Type: application/download'); header("Content-Disposition: attachment; filename=$tab_del_file"); header("Content-Length: " . filesize($tab_del_file)); $fp =