Page 1 of 1

Determine if file was downloaded successfully.

Posted: Tue Apr 10, 2007 8:37 pm
by jlising
Hi!

I have a script which allows users to download my files. An email will be sent every download attempts. My problem is, how can I determine if the user successfully downloads a file and not clicked the close or cancel button in the download window? I want to track it so that the script will send an email after the user successfully downloaded a file.

Many thanks!
Jessie

Posted: Wed Apr 11, 2007 7:37 am
by feyd
You will need a script to send the file in small chunks, then do whatever action after it finishes sending all the chunks.

Posted: Wed Apr 11, 2007 10:00 am
by Kieran Huggins
what about sending the header, followed by a readfile(), then logging the confirmation after? Does it still get past the readfile() on a user abort?