auto open behavior for files accessed via php
Posted: Fri Sep 24, 2010 3:10 pm
Hello,
I have a particular situation where files (.doc, xls, .pdf, etc...) are stored outside of the root web and accessed via a php file. It seems I cannot emulate the typical behavior of "auto opening" the file in the appropriate application with this approach. The browser always prompts to save. Is it possible to open the file with php headers or something similarly to directly linking to it?
My primary concern with this situation is that the sites search tool can no longer index these documents.
Thanks in advance.
I have a particular situation where files (.doc, xls, .pdf, etc...) are stored outside of the root web and accessed via a php file. It seems I cannot emulate the typical behavior of "auto opening" the file in the appropriate application with this approach. The browser always prompts to save. Is it possible to open the file with php headers or something similarly to directly linking to it?
My primary concern with this situation is that the sites search tool can no longer index these documents.
Thanks in advance.