View Single Post
  #14  
Old 12-05-2012, 03:54 PM
Banana Lord. Banana Lord. is offline
Member
 
Join Date: Mar 2011
Posts: 43
Quote:
Originally Posted by NiteWave View Post
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..
Reply With Quote