Php generated kml doesn't work

137 views
Skip to first unread message

Markus Miederer

unread,
Nov 14, 2011, 7:14:52 AM11/14/11
to KML Developer Support - KML Server Side Scripting
Hello,
i generat a kml over php from a mysql database.
If i call the php script directly, download it and change .php in kml
then it works fine.
If i change the src into

geoXml = new GGeoXml("xxxxxxx/getxml_gps.php");

it doesn't work, in the php script i define the header like:

header("Content-type: application/vnd.google-earth.kml+xml");

Can anyone help me?




Rossko

unread,
Nov 15, 2011, 8:08:39 AM11/15/11
to KML Developer Support - KML Server Side Scripting
> geoXml = new GGeoXml("xxxxxxx/getxml_gps.php");

GGeoXml requires that the URL is publicly available, you haven't told
us enough to tell about that.

GGeoXml is part of the Maps API v2 - group for that is here
http://groups.google.com/group/Google-Maps-API
Reply all
Reply to author
Forward
0 new messages