Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need to track downloads from my site -- how?
#2
You can never know for sure that the user has downloaded a file without any issues.

Maybe you will need to force the file download with PHP using header(), something like this:

Code:
...
header("Content-Type: $type");
header("Content-Transfer-Encoding: Binary");
header("Content-Length:".filesize($location));
header("Content-Disposition: attachment; filename=\"$file\"");
readfile($location);
...
    
And what you can do is to implement an additional step that must be executed after the file is successfully downloaded then you can track that step.
Reply


Messages In This Thread
RE: Need to track downloads from my site -- how? - by Bigin - 2016-10-28, 03:18:27



Users browsing this thread: 1 Guest(s)