Okay, I found a solution to part one of my questions by changing my headers,
but for some reason I am still getting a fractional download of the file.
Most commonly it's about 16.6KB of a 4MB file. The kicker is it says that it
completed successfully.
Here is the modified code:
?php
$download
I found the solution, I ended up instead of using readfile, use fopen and
fpassthru. Here is the code that solved the problem
?php
$pathtofile = '/abs/path/to/file'.urldecode( $_GET['link'] );
$download = 'url/path/to/fille'.urldecode( $_GET['link'] );
$type = urldecode(
2 matches
Mail list logo