Is that a PHP file?
If you you have to send a Content-Disposition header:
Place it somewhere at the top of the script.
I'm not sure if this was any help, but I hope it didn't make you stupider.
Experience is something you get just after you really need it.
PHP Installation Guide