Re: Serving out a file to Firefox ... headers?

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

 



Brian Dunning wrote:

> Sorry to revisit this issue YET ONE MORE TIME...  :)  :)
>
> My online store sends out the file for download upon purchase. Below 
> are the headers I send, and I understood that it should work for all 
> browsers. It does not work for Firefox. Suggestions?
>
> header('Content-Type: application/octet-stream');
> header('Content-Disposition: attachment; filename='.$filename);
> $size = filesize('../../store/files/'.$filename);
> header('Content-Length: '.$size);
> readfile('../../store/files/'.$filename);
>
Pretty sure Richard already squared this one away, I think this is the
article you are looking for:

http://richardlynch.blogspot.com/

Travis

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