Sorry I don't know how to use the header code. I read the manual, but I can't understnad. Here is the way I have the link
<a href=\"$data\" target=\"_blank\">Download as File</a>
$data is fetched from MySQL.
How do I use the header function here?
leatherback wrote:When generating the output, set the headers to be a file:
// We maken een bestand aan
header("Content-type: application/txt");
// Met datum in de naam
$filename = "Files_Manage_dow_".date("F_j_Y").".txt";
header("Content-Disposition: attachment; filename=$filename");