PHP Download Page

前端 未结 5 742
我在风中等你
我在风中等你 2021-01-29 07:13

How do these PHP download pages (e.g. somesite.com/download.php?id=somefile) often found work?

I originally thought of a page that does the counter stuff, and then simpl

5条回答
  •  执笔经年
    2021-01-29 07:59

    Generally, these don't redirect to the file's URL. Instead, they use readfile() to directly output the URL from wherever it's being stored (usually, somewhere outside the web root). Solves the direct link, password protection, queuing, etc. issues. Speed limiting would need to be on the web server end.

提交回复
热议问题