Re: header error or not?
| From: | Krzysztof Dziekiewicz | Date: | Fri, 01 Sep 2000 14:16:57 +0000 |
| Subject: | Re: header error or not? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14809@lists.php.net to get a copy of this message | ||
> I try to write scripts like this:
>
> header("Content-Type: application/unknown");
> header("Content-Disposition: filename=$file_name");
>
> for the file download tracking.but the problem is when the header is sent.
> There is nothing happen.(Only show blank screen instead ask user to save
> file as...). What's problem and how should i do?
>
try somethink like that. It works:
Header("Content-Disposition: attachment; filename=$filename");
Header('Content-Type: application/octet-stream');
Header("Accept-Ranges: bytes");