Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Returning a file to browser via php
March 22, 2005, 12:55 pm
rate this thread
I need to be able to "send, or stream" a file to the client browser
using PHP code. This is the scenario.
The user clicks a link on a page (after logging in to the site). I
need to have my PHP code return a document -a Word document file, let's
say - to the browser for display. However, the document is not in the
public WWW folder. For security reasons, it is on another drive on the
I need to have the php code return the file to the browser so that I
can wrap security code around this process.
Thanks in advance, any insight is greatly appreciated !