Re: Database and files
| From: | Richard Archer | Date: | Mon, 22 Apr 2002 10:31:25 +0000 |
| Subject: | Re: Database and files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-93963@lists.php.net to get a copy of this message | ||
At 12:19 PM +0200 22/4/02, David Russell wrote:
>Header("Header("Content-Disposition: attachment;
>filename=\"File65.doc\"" );
That's not right. Must be a typo.
Make sure there is no output before the header function calls.
I use:
header("Content-type: application/octet-stream; name=\"$fname\"");
header("Content-Disposition: attachment; filename=\"fname\"");
header("Content-transfer-encoding: binary");
...R.