Prompt to "Save As" No Matter What The File Type
From: Richie (newsmaster_at_scifi-central.net)
Date: 01/27/04
- Next message: Jedi121: "Re: Prompt to "Save As" No Matter What The File Type"
- Previous message: Andrew DeFaria: "Re: error when posting to mysql w/ php"
- Next in thread: Jedi121: "Re: Prompt to "Save As" No Matter What The File Type"
- Reply: Jedi121: "Re: Prompt to "Save As" No Matter What The File Type"
- Reply: Shawn Wilson: "Re: Prompt to "Save As" No Matter What The File Type"
- Reply: John Dunlop: "Re: Prompt to "Save As" No Matter What The File Type"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 27 Jan 2004 20:02:54 -0000
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($filetooutput, "rb");
$thefile = fread($fp, filesize($thefiletooutput));
header("Content-type: ???/???"); not sure what to put instead of the ???
echo $thefile;
If anyone can help that would be much appreciated
Richie
- Next message: Jedi121: "Re: Prompt to "Save As" No Matter What The File Type"
- Previous message: Andrew DeFaria: "Re: error when posting to mysql w/ php"
- Next in thread: Jedi121: "Re: Prompt to "Save As" No Matter What The File Type"
- Reply: Jedi121: "Re: Prompt to "Save As" No Matter What The File Type"
- Reply: Shawn Wilson: "Re: Prompt to "Save As" No Matter What The File Type"
- Reply: John Dunlop: "Re: Prompt to "Save As" No Matter What The File Type"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|