Hello; I need help how to detect file download completion, if user download from certain upload hosting provider , how can it callback to my site/server; example if user download from rapidshare, how could it sent information (such as ip address of the downloader),/callback to my website database to match that " this user visit my website and download the file from rapidshare using link in my website ". It look like the user ip of download file match the user ip for visit. Thanks.
To capture when the user "started" the download is trivial. To capture if the download has finished, now that 's not trivial at all, because you don't have any access from PHP to the web server thread that is serving he download. The only way I can think wold be to create a solution that ould involve serving the file directly through a PHP socket.
So how the file hosting provider, such as hotfile, filesonic detect the download completion as they say they counted complete download.
If your hosting the file you can easily detect downloads and the amount of data transfered, your challenge is that you arent hosting the files and so you will have to rely on other methods.