I have loaded a 3rd party PHP document management system for some of my users, but one key feature doesn't work. When the user wants to view a word/excel/powerpoint document, the browser returns the file, byte for byte to the browser, which looks like garbage.
There is a simple way to load a file to display properly, via calling from an IFRAME tag. For example:
<iframe src="English - Russian Keyboard Equivalent.doc" width="100%" height="100%"></iframe>
would actually load the word document into an IE browser or give the Firefox viewer the option to open the doc into Word directly.
The problem I have is that the documents are stored outside of the web root, for security purposes. My question is this, How do I go about loading these documents into an IFRAME, while maintaining the document security? Copying the file into the web area for display violates document control and security, but doing a raw data feed, like the program is currently doing obviously isn't working either.
Any thoughts?