![]() |
[solved] Force Download or any better than readfile()
I want to force download files instead of letting browsers handle files automaticaly. My files are stored on a remote server. Is there any way better than using readfile() to buffer download?
I see the Internal Redirect, but it's not working. |
Can you be more specific about your implementation? The internal redirect is as follows for reference.
http://www.litespeedtech.com/support...ernal_redirect |
I have 2 servers, 1 for running PHP apps and database, 1 for streaming and download medium static files.
I was using this line of PHP code to handle download. PHP Code:
I've searched around the internet for a coupe of hours, but everyone is using these line of codes for their download feature. PHP Code:
|
if you want to use LSWS internal redirect, you need the download and PHP app on the same server or download being the local path to PHP app (or via nfs mount).
|
Quote:
AND it works like a charm. |
paste the tip here:
Code:
in .htaccess: |
| All times are GMT -7. The time now is 05:54 AM. |