\n"; exit; } $qs="SELECT * FROM docs WHERE ID='$ID'"; $rs=mysql_query($qs); if ($rw=mysql_fetch_array($rs)) { header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-length: $rw[size]"); header("Content-type: $rw[type]"); // header("Content-Disposition: attachment; filename=$rw[filenaam]"); // levert extra blank window! header("Content-Disposition: inline; filename=\"$rw[filenaam]\""); // echo $rw["bestand"]; $filenaam="../docs/$ID.file"; readfile($filenaam); exit; } else { echo "Document onvindbaar.
\n"; } ?>