Enter the URL in the browser to download the solution

Source: Internet
Author: User
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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.