i have a webpage with a url going out. I want to change the filename that the person will receive.
<a href="http://downloadlink.com/Grizzly.avi">test - click here to download</a>
<?php
header('Content-Disposition: attachment; filename="test.avi"');
?>
The problem is: I receive the web page and not the file.. When i access the page, a download starts directly.. it's should wait for me to click on the "click here to download". Also, the downloaded file, is only the actual source code of the page and not the file that i want to download..
Here is a screenshoot, better to explain than my words with my bad english :D
https://i.stack.imgur.com/Si9cP.png
Thanks.