hi,
Thanks for the great script, its very simple and powerful.

Can anyone help me make a log with more info from the user?
Here is something I like to add.
gethostbyaddr(getenv('REMOTE_ADDR')), /* Name of the remote host */
$file_name, /* Name of the download file */
getenv('HTTP_REFERER'), /* Referring URL */
getenv('HTTP_USER_AGENT'), /* User agent */
If it is possible, add a counter to count the number of file being download.
thank you.