Simple PHP MIME Viewer
Posted: Thu Nov 20, 2003 12:02 am
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?