PHP -> Google Earth KML timestamp

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jayp
Forum Newbie
Posts: 1
Joined: Wed Feb 25, 2009 9:10 am

PHP -> Google Earth KML timestamp

Post by jayp »

I've built a php script that calculates the sun's azimuth and altitude based on observers lat/long position. This script generates kml, which forms my network link. When I run the network link in Google Earth, the placemark position is updated every 60 seconds and each time it updates, a timestamp is refreshed to show the current time.

I really need a clear understanding of how I could set up the php to generate a new placemark and a new timestamp each time the link is refreshed so that I end up with a set of placemarks and corresponding timestamps for a 24 hour period. This way, GE will display a time slider based on the timestamp data and the user will be able to scrub through the different times and watch the sun's movement.

I've tried for loops with different kinds of conditions but this doesnt seem to work. I'm really stumped on this as my knowledge of php is limited. Would greatly appreciate any help!

Thanks
Post Reply