
12-05-2012, 03:54 PM
|
|
Member
|
|
Join Date: Mar 2011
Posts: 43
|
|
Quote:
Originally Posted by NiteWave
I have an idea in your php script, create a temporary symbolic link to the file, like a.jpg, then "X-LiteSpeed-Location: /path/to/a.jpg". when download complete, delete a.jpg. or create a cron job, clean up these temporary soft link(a.jpg) which created 1 hours ago(for example).
|
Thanks, I'll give it a shot. Can I remove the symlink after the X-LiteSpeed-Location header? ie.
header('X-LiteSpeed-Location: /files/tmp/temp.png');
unlink('/files/tmp/temp.png');
When using them in that order I receive the following error in LiteSpeed:
detect loop redirection
Last edited by Banana Lord.; 12-05-2012 at 04:34 PM..
|