addChild('Document'); $point = new kmlPoint(rand(5900,6000)/100,rand(100,200)/100); $placemark = $document->addChild(new kmlPlacemark_Photo(null,'test',$point)); $placemark->setTimeStamp(date('Y-m-d')); $placemark->useImageAsIcon("http://".$_SERVER['HTTP_HOST']."/templates/basic/img/guide1.jpg"); $point2 = new kmlPoint(rand(5900,6000)/100,rand(100,200)/100); $placemark->addPhotographerPoint($point2); if (isset($_GET['download'])) { $kml->outputKML(); exit; } print "Open in Google Earth
"; print ""; exit; print "
";
print_r($kml);
?>