If i have a simple PHP script that simply redirects to another file (for downloading), is it possible to log (to a text file) and automatically find out which files are the most popular and the number of total downloads?
$f is the file that the user wish to download.
<?php
$file = "http://server.com/downloads/${f}.zip";
header("Location: $file");
exit;
?>