Protected File Download Script. Almost there

后端 未结 4 1365
無奈伤痛
無奈伤痛 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:18

    You just need to consider the path like a normal directory path, not a web one. so to go up a level simply "../" e.g.

    if you structure is like this

    /path2file/inhere.pdf /public_html/download.php

    the path to the file would simply be from download.php "../path2file/inhere.pdf"

提交回复
热议问题