download.php source code
<p>when I try to download from some servers, I`m redirected to a download.php page, which can contain many things, then the file download starts.</p>

<p>I want to know how to track my downloads using this download.php file. I mean I want to know how to write this file and what are the contents of this file.</p>
