Simple PHP MIME Viewer
Moderator: General Moderators
- tastywheat
- Forum Newbie
- Posts: 3
- Joined: Thu Nov 20, 2003 12:02 am
- Location: Texas
Simple PHP MIME Viewer
If there is such a beast, does anyone know of a way I can "force" a file to be viewed instead of downloaded (for images,texts,pdfs,etc.). I'm pretty sure that I have to setup the headers with the appropriate Content-Type and Content-Length but I'm not sure how to send the file data. Is this a lot more complicated that I think or is this do-able with a moderate amount of code?