nearby.org.uk logo · Coordinate Convertor
· Interactive Feature Map
· Location Searches
· Google Earth & Maps
· UK Placenames
· GB Paper Maps
· API / Downloads
· Blog
· Support Nearby
   

Google My Maps Tools: Images in Balloons | My Maps Backup | Custom Embed Maker | Multiple My Maps (via gokml.net) | Extract Coordinates | Google Earth TOOLS: Fly-To |   MORE...
KML TOOLS: KML shortlinks | KML Intersect | Sort KML | Geographical Grouping | Add elevations | RSS to KML | Project Point

Test the browsers responce to generating dynamic KML from a PHP script

Note: The preselected items are what I tend to use - not from extensive testing, just what seemed to work :)

Script Name
  • kml-headers.php
  • kml-headers.kml (uses a RewriteRule to direct to the php file)
  • kml-headers.php/kml-headers.kml (uses a fake filename, appriate settings might be needed in webserver config)
Form Method (incase POST affects it)
  • POST
  • GET
Content-Type
  • application/vnd.google-earth.kml+xml (standard KML)
  • application/octet-stream (general binary)
  • application/xml
  • text/xml
  • text/plain
  • text/html
  • none (but php will output text/html)
Content-Disposition
  • attachment; filename="kml-headers.kml"
  • attachment
  • inline; filename="kml-headers.kml"
  • inline
  • none
Content-Location
  • /kml-headers.kml
  • http://www.nearby.org.uk/kml-headers.kml
  • none
Cache-Control
  • no-store, no-cache, must-revalidate
  • max-age=3600
  • max-age=30
  • max-age=2
  • max-age=0
  • Public
  • none

See also a static KML file served directly by Apache, using .htaccess with AddType application/vnd.google-earth.kml+xml kml

- Home - Blog - Location Links - Location Search - Search Gateway - Gazetteer - Location Search Index - API -
/nearby.org.uk © 2005-2010 [disclaimer] developed by trigtools.co.uk BackToTop