How to put programs on the website

How to put programs on the website

Owners of the websites sometimes have a need to lay out the software for free downloading. At the same time it is important not just to load files, but also to make their search and downloading convenient for visitors of an Internet resource.

Instruction

1. At first download files of programs via the control panel of your account on a hosting. It is the best of all to create for these files the separate folder – for example, program or download. If you download big files, say, the OS distribution kits, it is better to carry out loading on FTP.

2. That visitors of your website could download the loaded files, it is necessary to place the corresponding references in the code of the page. In the simplest case it is just text reference specifying path to the file. For example, such: http://адрес_сайта.ru/downloads/restorator.exe. In this example the path to the restorator.exe program (widely famous editor of resources) is specified. The user will be able to download it, having clicked on the link or having copied path to an address bar of the browser.

3. For convenience of users the link can be issued differently for what it is necessary to use the special HTML code allowing to hide actually the address, having made the link the name of the program or other explanation. The previous link in this case can look so: <href= ""http://адрес_сайта.ru/downloads/restorator.exe""> Editor of the Restorator resources </a>. At an insert of this code the user will see the line "Editor of the Restorator Resources" which will be the link.

4. Absolute and relative paths can have references to the downloaded files. In the example given above the absolute path was used – that is this reference can be placed on any page of the website or on other website, and it will work. When using relative paths the address of the file is specified concerning the folder in which it is of the directory or a root of the website. The specified path in this case is shorter, but for working capacity should be correctly registered.

5. When using relative paths the example given above could look so: <href= ""/downloads/restorator.exe""> Editor of the Restorator resources </a>. The link will work only at the website with the laid-out program. If the file of the program is in one directory with the page on which the reference is placed, the last can look even simpler: <href= ""restorator.exe""> Editor of the Restorator resources </a>.

6. At placement of links it is simpler to specify absolute paths as in this case usually there are no difficulties, links begin to work at once – provided that in the address there are no errors. Having posted links on the website, surely check their working capacity.

Author: «MirrorInfo» Dream Team


Print