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

后端 未结 4 1690
暖寄归人
暖寄归人 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条回答
  •  感动是毒
    2020-11-30 10:08

    You can use the header() function which is documented here

    I would suggest scrolling down and looking at the 1st example. It seems to be doing exactly what you want.

提交回复
热议问题