I have some programming experience in other languages but have not programmed in PHP. Therefore I am not even certain if PHP is the correct or most suitable tool to use for this purpose and consequently if I am posting this to the correct Forum.
I want to enable a visitor to a site to click on a “Download” button which will then allow them to download and save a file locally to disk. I assume that some server-side programming will be necessary to enable this process to complete. However, I am uncertain as to what is the best approach to adopt to facilitate this.
Currently security is not an issue, however, at some time in the future certain files that are made available for download will have to be housed on a secure server that will require a Username / Password to access. Even though security will not be enabled at this time, I would prefer to set the process up in such a way that security could be added reasonably easily at a future date.
I would be grateful to receive any advice as to the preferred method to employ to facilitate this process.
Thanks
T.