I'm planning a little web application mostly using php as that is what I am familiar with. The idea is to general a kml document on-the-fly and display it on a google map. From the examples I've seen, it is also possible to write a kml file from php, and it is possible to display kml files via the google maps api. Therefore it would be possible to write a application to combine these two by way of a temporary kml file on the server, but is there anyway I could avoid having a temporary kml file? if so... how?