note 105778 deleted from function.fpassthru by danbrown
| From: | danbrown@php.net | Date: | Thu, 15 Sep 2011 17:07:47 +0000 |
| Subject: | note 105778 deleted from function.fpassthru by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183194@lists.php.net to get a copy of this message | ||
Note Submitter: hst-pmb9e at hersto dot com
----
If downloaded files get corrupted after download, the
reason may be that this is due to a BOM header on your
PHP file or the one it includes or requires.
Like mikek at muonics dot nospam dot c dot o already said we
should not have white spaces around <?php and ?> tags. But
BOM headers are white spaces that are not even displayed by
a text editor.
In my case the BOM (3 bytes) got sent to the client but HTTP
headers were not sent for some reason, so that my own
header(...) statements did work, the resulting file just had
these additional 3 BOM bytes at the beginning.