Re: Re: File Download Headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux