I use the:
echo kml[] = '<html tags> etc';
method to create KML files without problems
and:
echo 'report info<br>';
to report what has been created without problems.
But if I try to do both while processing the data only once, GE
complains that the KML has non-KML data when it tries to parse the
file.
I haven't tried this for a couple of months but obviously I can try
again and give more specific example code if necessary to help someone
help me, but I suspect that experienced server-side scripters do this
all the time and might be able to point me in the right direction
without further info. Somehow I have to get data going to 2 different
output "channels" at the same time, I suspect. Many thanks.
I wasn't very clear. I want to open a KML in the 3D viewer with lots
of placemarks on one screen and at the same time list these placemarks
on a 2nd screen with lots more info about each placemark. No errors
involved (I hope). So SlowTarget's approach #1 seems the way to go -
just like building up the lines of KML code before opening it.
Thanks both.