|
Posted by Rik on 02/23/07 15:26
On Fri, 23 Feb 2007 15:17:20 +0100, Hendri Adriaens
<spotjeREMOVE@THISgmail.com> wrote:
> So, is there any working way to determine if a file was downloaded and
> opened/saved instead of cancel being clicked in the download dialog?
I'd use a combo of:
ignore_user_abort(true);
readfile();
//just for those fast downloads of small files sleep
//tinker with it
sleep(2);
if(!user_aborted()){
unlink();
} else {
//perhaps some logging, which is why I set the ignore_user_abort() to
true.
}
--
Rik Wasmus
Navigation:
[Reply to this message]
|