<?
    header("Content-type: Application/octet-stream");
    header("Content-Disposition: attachment; filename=tekst_bestand.txt");
    readfile("downloads/tekst_bestand.txt");
?>