I need to download the file in PHP, but so that the user does not know where the final file is located.
File paid. The user buys it and gets a unique link to download it.
A few questions.
- Where the files are usually stored on the server in order not to get them “accidentally”, so to speak.
- What will the link look like (what is there to code)
- Actually how to download the file to the user (if possible, sample PHP code)
- Is there a simple script to learn with this functionality? Well, or some PHP class?
- For myself ... What to write to Google, from what to dance?
I myself am just not familiar with the principle of the work of such a thing. I do not know where to start and how to do it.
Thank you in advance!