I'm trying to get a static image from Bing maps for pushpins and showing location of certain individuals. I'm using the imagery api that bing supplies and basically using their simple example code but I'm getting ";?>
instead of the image.
<html>
<head>
<title>Driver Locations</title>
</head>
<body>
<?php
$latitude = "40.59507828";
$longitude = "-73.78302689";
$key = "";
$imageryBaseURL = "http://dev.virtualearth.net/REST/v1/Imagery/Map";
$pushpins = "&pp=";
$mapsize = "?mapSize=800,600";
$ppStyle = ";47;";
$imagerySet = "Road";
$JulieCP = $latitude.",".$longitude;
$JuliePP = $JulieCP.$ppStyle."JULIE";
$zoomLevel = "15";
$latitude = "40.90421779";
$longitude = "-73.86591633";
$MarkCP = $latitude.",".$longitude;
$MarkPP = $MarkCP.$ppStyle."MARK";
//http://dev.virtualearth.net/REST/v1/Imagery/Map/Road?mapSize=800,600&pp=40.59507828,-73.78302689;47;JULIE&pp=40.90421779,-73.86591633;47;MARK&key=$key
echo "<img src='".$imageryURL = $imageryBaseURL."/".$imagerySet."?mapSize=800,600".$pushpins.$MarkPP.$pushpins.$JuliePP."&key=".$key."'>";
?>
</body>
</html>