Re: Setting headers for file download

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

 



On Tue, June 13, 2006 1:44 am, Peter Lauri wrote:
> This is how I try to push files to download using headers:

Content-type: application/octet-stream

Any browser failing to download THAT is seriously broken.

The Content-Disposition: crap will only work on select browsers -- If
you really want that filename to work, tack it onto the end of the
URL.

The link should be:

http://example.com/yourscript.php/<?php echo $filename?>

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
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