source:
extensions/ConcoursPhoto/admin/file.php
@
20289
Last change on this file since 20289 was 4319, checked in by , 15 years ago | |
---|---|
File size: 348 bytes |
Line | |
---|---|
1 | <?php |
2 | |
3 | $filename = $_GET['file']; |
4 | |
5 | $dirpath = "../result/"; |
6 | |
7 | $size = filesize($dirpath. $filename); |
8 | |
9 | header('Content-Type: application/octet-stream'); |
10 | header('Content-Length: '.$size); |
11 | header('Content-Disposition: attachment; filename='.$filename); |
12 | header('Content-Transfer-Encoding: binary'); |
13 | |
14 | readfile($dirpath. $filename); |
15 | |
16 | ?> |
Note: See TracBrowser
for help on using the repository browser.