Kvittering efter download
Hvordan får jeg nedenstående til at skrive "Thank you for downloading" efter at downloaded er gået igang?<?php
$file = 'document.pdf';
$path = $_SERVER['DOCUMENT_ROOT']. '/downloads/';
header("Content-type: application/octet-stream");
header("Content-Length: ".filesize($path.$file));
header("Content-Disposition: attachment; filename=". $file. "");
header("Pragma: no-cache");
header("Expires: 0");
readfile($path.$file);
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="generator" content="Adobe GoLive" />
<title>Download</title>
</head>
<body bgcolor="#ffffff">
<p>Thank you for downloading</p>
</body>
</html>