I got a script like this
<?php
if (file_exists("./foo.txt")) {
header("Content-type: application/force-download");
header("Content-length: ".filesize("./foo.txt"));
header('Content-Disposition: attachment; filename="foo.txt"');
readfile('./foo.txt');
}
print "HEY!";
?>
and I want the "Hey" to be written to the page after the forced download, how is that possible?
I see download pages that are like "If your download does not start automatically click here", so it's content and the download? The hey
in my example is included in the text file, so it doesn't work.