= $temp[0] && $code <= $temp[1]) { $cntry=str_replace("\r", "",str_replace("\n", "", $temp[4])); } } fputs($log, date(DATE_RFC822)."\t".$_SERVER['REMOTE_ADDR']."\t$cntry\t$a\t$b\t$c\r\n"); fclose($log); header("Location: ".$a); $zzz = explode("/", $a); header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=".urlencode($zzz[-1])); } ?>