In the example the directory that contains the script also contains the directory files.
In order to download a file with filename "file.txt" we should call the script like http://domainname/file.php?filename=file.txt .
If the file doesn't exist we will get a "FILE NOT FOUND" message, otherwise we will get the file.
This is a good practice in order to conceal our file true location.