Simple PHP MIME Viewer

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
tastywheat
Forum Newbie
Posts: 3
Joined: Thu Nov 20, 2003 12:02 am
Location: Texas

Simple PHP MIME Viewer

Post by tastywheat »

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?
Post Reply