[PHP] Forced Download Using header()

2003-03-18 Thread Kevin Kaiser
I have a simple php download script that streams a non-web-accessible file to the browser using this generally accepted method: header(Expires: 0); header(Cache-Control: private); header(Content-Type: application/save); header(Content-Length:

Re: [PHP] Forced Download Using header()

2003-03-18 Thread Ernest E Vogelsinger
At 11:16 18.03.2003, Kevin Kaiser said: [snip] I have a simple php download script that streams a non-web-accessible file to the browser using this generally accepted method: header(Expires: 0); header(Cache-Control: private);

[PHP] Forced download??

2001-09-13 Thread Zhu George-CZZ010
Is there a way to do the forced download? i.e., the browser can't read the file online(no matter whether it is .html or .txt file), instead, when he clicks the link, he will be asked to download it. Is there a way to do that? Thanks ahead! -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Forced download??

2001-09-13 Thread Alexander Skwar
So sprach »Zhu George-CZZ010« am 2001-09-13 um 17:46:13 -0500 : Is there a way to do that? Yes, send a bogus filetype, maybe something like application/x-download. PS: Please keep your lines below ~72 characters. Thanks ahead! Yep. Alexander Skwar -- How to quote: http://learn.to/quote