Currently I have a PHP site that will show different links to user to download the files. I am using the following php code for this:
echo "<a href=$link download=\"$id.$fileformat\".>Click Here To Download</a>";
echo '<br>';
echo '<br>';
And when user clicks on the link, it will download the file to the user's machine. But how do I download it to the server itself?
Meaning when clicked, the file will be downloaded to the server and the location of the file in the server will be shown to user.