/// Print header to force download
header("Content-Type: application/download\n");
- header("Content-Disposition: attachment; filename=\"$course->shortname $quiz->name.txt\"");
+ header("Content-Disposition: attachment; filename=$course->shortname ".$quiz->name.".txt");
+ header("Expires: 0");
+ header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
+ header("Pragma: public");
+
/// Print names of all the fields