comparison geotemco/php/download.php @ 13:ecee20ea7dad

merge for updating books_coordinates.csv for 176 missing coordinates
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Wed, 28 Oct 2015 11:59:57 +0100
parents 389cf726303e
children
comparison
equal deleted inserted replaced
12:a599ced81534 13:ecee20ea7dad
1 <?php
1 <?php 2 <?php
2 /* 3 /*
3 * proxy.php 4 * proxy.php
4 * 5 *
5 * Copyright (c) 2013, Sebastian Kruse. All rights reserved. 6 * Copyright (c) 2013, Sebastian Kruse. All rights reserved.
26 $filesize = strlen($file); 27 $filesize = strlen($file);
27 28
28 $mime = array('application/octet-stream'); 29 $mime = array('application/octet-stream');
29 30
30 header('Content-Type: '.$mime); 31 header('Content-Type: '.$mime);
31 header('Content-Disposition: attachment; filename="test.kml"'); 32 header('Content-Disposition: attachment; filename="download.kml"');
32 header('Content-Transfer-Encoding: binary'); 33 header('Content-Transfer-Encoding: binary');
33 header('Content-Length: '.sprintf('%d', $filesize)); 34 header('Content-Length: '.sprintf('%d', $filesize));
34 header('Expires: 0'); 35 header('Expires: 0');
35 36
36 // check for IE only headers 37 // check for IE only headers