After the research at the store
XML file outputed by the code below
<?php
echo ‘<?xml version=“1.0” encoding=“UTF-8”?><kml xmlns="http://www.opengis.net/kml/2.2”><Document>’;
$file = fopen(“competitor_positions1.csv”, “r”);
if (!$file) {echo ‘Error getting menu data’;}
while($map_item = fgetcsv($file,1000)){
echo “<Placemark<>name>”;
echo $map_item[0];
echo ‘</name><description>’;
echo ‘<![CDATA[<p><img style=“float:right;” src=“http://www.martinfrancis.org/addon_uwe/friska_2.0/friska_competitors_small/’ . $map_item[5] . ‘.jpg” /></p>]]>’;
echo ‘</description>Point<<coordinates>’;
echo $map_item[4] . ‘,’ . $map_item[2] . ‘,50’;
echo “</coordinates></Point>/Placemark<”;
}
fclose($file);
echo ‘</Document></kml>';
?>