October 4th, 2013, 09:22 PM
Force Download PDF is Corrupted
I am using the following script to force download various pdf files from above the root, and it IS working BUT the files are corrupt! What am i missing?
Any help would be greatly appreciated.
<p><a href="get-secure.php/course1_lesson_1_s.pdf">Download your PDF 1</a></p>
<p><a href="get-secure.php/course1_lesson_2_s.pdf">Download your PDF 2</a></p>
October 4th, 2013, 10:28 PM
What you're missing is the "param" parameter.
That, and your script allows anyone to download any file on your server.
October 7th, 2013, 09:31 AM
And $len comes from nowhere.
HEY! YOU! Read the New User Guide and Forum Rules
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002
Think we're being rude? Maybe you asked a bad question
or you're a Help Vampire.
Trying to argue intelligently? Please read this.