HI sir, i have a download file, now, when i click download button, it will open a middle php page, this page contain download counts and download file,then return download file. download.php -> middle php file (---------)->download.php my code in middle page: <?php header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=aaa.exe"); header("Location: download.php"); ?> but, there's no effect in these download code, when i comment the last code, it can download it. how should i do it? thanks.