I have the following script which forces a file download
$dir="../../documents/"; $getfile=$dir.$filename; header("Content-type: application/force-download"); header("Content-Transfer-Encoding: Binary"); header("Content-length: ".filesize($getfile)); header("Content-disposition: attachment; filename=\"".basename($getfile)."\""); readfile("$getfile");
The problem is that if I run this, there is no way to perform a close window script or a page redirection script when the file download box has poped up, the reason I ask is that when you excuite the above code, you areu are left with a blank page.
Does that make sense?
Thanks in advance