Re: Re: File Download Headers
| From: | Chris Shiflett | Date: | Fri, 16 Jun 2006 13:10:57 +0000 |
| Subject: | Re: Re: File Download Headers | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238161@lists.php.net to get a copy of this message | ||
tedd wrote:
Barry says you can use these three: header("Content-Type: application/force-download"); header("Content-Type: application/octet-stream"); header("Content-Type: application/download"); Richard says only use this one: header("Content-type: application/octet-stream"); And, you say use both.Both Content-Type and Content-Disposition. Richard's example is the correct Content-Type to use. Barry's is no different than this: header('Content-Type: foo/bar'); It's better to use a valid type and to not have superfluous header() calls that do nothing. Hope that helps. Chris