sdlawyeres
New Member
I have a very simple hide-download-path-script setup like this:On index.html I have this link:\[code\]<a href="http://stackoverflow.com/questions/15852117/savefile.php">save</a>\[/code\]On savefile.php I have this bit of code:\[code\]$file = 'http://www.mysite.com/files/correct_horse_battery_staple.rar';header("Content-Type: application/force-download");@readfile($file);\[/code\]This does seems to work, but unfortunately it downloads the file as \[code\]savefile.php\[/code\] rather than \[code\]correct_horse_battery_staple.rar\[/code\]. Is there any way to change not only the file name but also the extension?