18.2.2009 09:22
@Keith
Try another browser.
This header says, that a download box needs to be displayed to the user (no direct opening in browser), and that the file is binary. It also states, the data shouldn't be cached anywhere on the way.
Try another browser.
Code:
header('Cache-Control: must-revalidate');
header('Pragma: hack');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="poi.kml"');
header("Content-Transfer-Encoding: binary\n");
This header says, that a download box needs to be displayed to the user (no direct opening in browser), and that the file is binary. It also states, the data shouldn't be cached anywhere on the way.
Coffee phreak!