I'm not sure what your URL looks like, but if it is something like this:
http://www.yourserver.com/page.php?file=filename
Then you could just add this to the end of it:
&a=1
(or whatever you want really)
Then, on page.php, you could add a quick 'if' statement...
if($_GET["a"] == 1)
{
log the download
header("Location:http://www.yourserver.com/page.php?file=filename);
}
/ put other code here, to decide what file to download /
You still get the page flip, but it's back at the same page and it's fairly subtle.
-- Jason