I currently use a header to fetch the file.
Basically when you click download it goes to the download page, which then fetches the id, and searches the db and finds relative results. It then headers it to the file (after adding +1 to the download counter).
So I tried using the Content-Disposition, but it doesn't work properly
.
code:
header("Location: {$download}");
That's whats in my download page (minus the counter).
Help