Hi all. If I'm sending a large file, say, a zip file to the browser though use of
header("Content-type: application/zip");
readfile("bigfile.zip"),
and the user clicks the "cancel" button during the download, how can I catch that event and "clean up"? - in this by clean up I mean deleting the large file.
I tried calling ignore_user_abort(), but the file still doesn't get deleted after a cancel. I'm not sure what becomes of a readfile() if it gets "canceled" by the browser. Can someone enlighten me?
thanks kindly,
Paul