File downloads and http headers.
Posted: Fri Jul 25, 2003 7:37 am
I have a bunch of .zip files that I want people to be able to download if they have logged in. The files are chmodded to 700 so that my script can read them, but no one can request the files directly through the URL.
I have the logins working fine, but the download script behaves very differently in different browsers, i'm not even sure it works at all.
In IE6, the HTML file is downloaded instead,
In N7, .php is appended to the .zip extension
In Opera, the filename is correct, but the received file is corrupted.
What is the tried and tested way (if any) to do this?
I have the logins working fine, but the download script behaves very differently in different browsers, i'm not even sure it works at all.
In IE6, the HTML file is downloaded instead,
In N7, .php is appended to the .zip extension
In Opera, the filename is correct, but the received file is corrupted.
What is the tried and tested way (if any) to do this?