Protected File Download Script. Almost there

后端 未结 4 1473
無奈伤痛
無奈伤痛 2021-02-11 08:55

I have a file that users will purchase via paypal, clickbank and paydotcom. I have to host the file\'s download page on my server.

I\'ve placed the file in a directory o

4条回答
  •  孤独总比滥情好
    2021-02-11 09:10

    well if public_html is your doc root then you should be able to get the path to download would be

    realpath($_SERVER[DOCUMENT_ROOT].'/../download');

提交回复
热议问题