"; exit; } $size = filesize($Down_File); clearstatcache(); $Countverz = $Verzeichnis."counter"; $GS = 0; header("Content-type: application/octet-stream"); header("Content-disposition: attachment; filename=".$download); header("Content-Length: $size"); header("Pragma: no-cache"); header("Expires: 0"); readfile($Down_File); include ('admin/db.php'); $tabellenname="contents"; $sql="UPDATE $tabellenname SET aufrufe=aufrufe+1 WHERE id='$id'"; $link=mysql_connect($dbhost, $dbuser, $dbpass); mysql_select_db($db1, $link); mysql_query($sql, $link); close(); }} echo "Anfrage abgelehnt"; ?>