I am writing a download page for user to download his own mail attachment. For eg. user is clicking a link:
http://www.myweb.com/getfile.php?fileID=2
php will get the fileID and retrieve the path where the file was put in the server. Let's say, the path+file name is:
$file = "../storage/vo0002e.mp3";
I have wrote this script:
header("Location: $file");
error comes out. How can i correct it?
And also I test with header("Location: ../storage/vo0002e.mp3")
it will open media player instead of opening loading screen for choosing save / open. How do I make this work?
Thanks a lot