Hi !
I used this code to download a file. This works good, but my problem is that I don't know if the user downloaded the file or cancelled the operation. How can I know it?
I'm using php with Apache.
Thanks in advance
Silvia
<? $filesize = filesize($file);
if($filesize) {
$fp = fopen($file, "r");
$content = fread($fp, $filesize);
Header("Content-type:application/unknow");
Header("Content-length: $filesize");
Header("Content-disposition: attachment; filename=".$filename);
echo($content);
}
?>