In the browser, enter the Web site to download some software and some compressed packages on the server. in the client, enter the Web site in the browser to download these files. how can I write the server code? In addition, how can I write a record of the number of times a file is downloaded? Thank you! ------ solution ------------------ no need to write. the server will directly send these files to the browser. if the browser cannot identify the files, it will save the file locally, that is, download. In addition, I want to record the download by entering the URL in the browser
I put some software and some compressed packages on the server. on the client, I enter a URL in the browser to download these files. how can I write the server code?
In addition, how can I write a record of the number of times a file is downloaded?
Thank you!
------ Solution --------------------
No need to write, the server will directly send these files to the browser, if the browser cannot identify, it will save the file locally, that is, the download.
In addition, how can I write a record of the number of times a file is downloaded?
This requires PHP as an intermediary to record the downloads of related files and read the specified files.
Give you a link http://jennal.cn/2009/01/31/php%E4%B8%8B%E8%BD%BD%E6%96%87%E4%BB%B6%E7%9A%84%E5%87%BD%E6%95%B0/