Is it possible to know when a download is finished?
Is it possible to know when a download is finished?
PetterSmart
9:26 pm on Jun 7, 2006 (gmt 0)
Is it possible to use a php script to let a user download a file (.doc .mpeg or whatever), to detect when the download is finished and then run the rest of the script?
Why not just send the correct header [php.net] to the browser first and use readfile [php.net] to fire the output directly to the browser? At the end of the readfile you know they are finished.