1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- /*
- DOKEOS - elearning and course management software
- For a full list of contributors, see documentation/credits.html
-
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or (at your option) any later version.
- See "documentation/licence.html" more details.
-
- Contact:
- Dokeos
- Rue des Palais 44 Paleizenstraat
- B-1030 Brussels - Belgium
- Tel. +32 (2) 211 34 56
- */
- /**
- * @package dokeos.survey
- * @author
- * @version $Id: download.php 10605 2007-01-06 17:55:20Z pcool $
- */
- $filename="temp/test.csv";
- header('Expires: Wed, 01 Jan 1990 00:00:00 GMT');
- header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
- header('Cache-Control: public');
- header('Pragma: no-cache');
- header('Content-Type: application/force-download');
- header('Content-Length: '.filesize($filename));
- header('Content-Disposition: attachment; filename='.$filename);
- readfile($filename);
- ?>
|