Download link without PHP: <a href="file.zip">download</a>
Download link with PHP: <?php echo '<a href="file.zip"-->download ?>
Ask a question humanly.
peggie_Aufderh answered on June 3rd 19 at 19:35
Put the http header
Content-Disposition: attachment; filename=MyFileName.ext
And rejoice. Counter can inside this php file, just let receives from the database the number of downloads, adds one and saves back to the database. And then in a different place, you will be able to withdraw from the database, how many times have downloaded the file.