A PHP script to let users download a file from my website without revealing the actual file link in my website?

后端 未结 4 1692
暖寄归人
暖寄归人 2020-11-30 09:19

The question says it all.. How do I let the users download a file from my website and not let them see what link that file comes from? I understand that the

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 10:06

    readfile should do what you want. Put the actual file outside the web server root, and require some credentials before passing back the file.

提交回复
热议问题