I tried searching first, but couldn't find an answer
My first shot at PHP (what a cool language!)
Wrote a quick script to query a server for xml data and plot it as
points on a map
Easy......, but then I wanted to take that same data set and create an
IMAGE MAP in HTML via PHP so I could click on each data point
It seems that imagepng won't work surrounded by HTML in the same code
my work-around was to basically query the server once to create the
plotted image, and then query the server again in a separate script to
create the image map
while this works, I am querying the server twice for the same data
since I can't figure out how to share thte data with the script that
creates the actual image and the script that creates the html image
map
here is sort of kind of what I would like to do....
$URL = 'http://blahblahblah';
$RawData = @file_get_contents("$URL");
<HTML>
<BODY>
<img src="myscript.php?mode=MakeGraphic&data=$RawData"
<map name="mymap">
<?php myscript.php?mode=MakeImageMap ?>
<map>
<BODY>
</HTML>