What I want is to have a link to a file (it could be a .zip, .exe, .jpg,
..txt or even .html) and when the user clicks on it they are prompted with
the Save As box, as opposed to it opening in the browser.
I think I need to do something like:
$fp = fopen($filetoou tput, "rb");
$thefile = fread($fp, filesize($thefi letooutput));
header("Content-type: ???/???"); not sure what to put instead of the ???
echo $thefile;
If anyone can help that would be much appreciated
Richie
..txt or even .html) and when the user clicks on it they are prompted with
the Save As box, as opposed to it opening in the browser.
I think I need to do something like:
$fp = fopen($filetoou tput, "rb");
$thefile = fread($fp, filesize($thefi letooutput));
header("Content-type: ???/???"); not sure what to put instead of the ???
echo $thefile;
If anyone can help that would be much appreciated
Richie
Comment