How do I prevent or allow people to download a file, using PHP?

sonotleet

New member
Let's say I have a 1MB example.exe file. How can I prevent someone who knows the name of the file from downloading it.

But lets also say that when a user enters a correct code word and submits it, they are allows to download the file.

How can I set this up? What do I have to do in my FTP client? And what should I do in my PHP code?
 
Back
Top