Quote:
Originally Posted by Natch
You should be able to cause your PHP script to redirect to a second PHP script designed just to mask the location - it would contain just a
Code:
Header: mime-type yadda yadda
statement followed by the contents of the file - if the file is local then there hsould be no bandwidth increase ... am I totally off base here ?
|
Yes, that's essentially what the current code does, and it works fine. The question that was raised concerns the increased bandwidth when the file to be downloaded is held on a third machine. In that case, the main server has to read the file before downloading it. Alternatively the browser can be told to launch itself and read the third party file, but in that case one cant keep the location secret.