I am trying to get an xml feed from a url
http://api.eve-central.com/api/marketstat?typeid=1230®ionlimit=10000002
but seem to be failing miserably. I have tried
http_get
Yet none of these seem to echo a nice XML feed when I either echo or print_r. The end goal is to eventually parse this data but getting it into a variable would sure be a nice start.
I have attached my code below. This is contained within a loop and $typeID does in fact give the correct ID as seen above
$url = 'http://api.eve-central.com/api/marketstat?typeid='.$typeID.'®ionlimit=10000002';
echo $url."<br />";
$xml = new SimpleXMLElement($url);
print_r($xml);
I should state that the other strange thing I am seeing is that when I echo $url, i get
http://api.eve-central.com/api/marketstat?typeid=1230®ionlimit=10000002
the ® is the registered trademark symbol. I am unsure if this is "feature" in my browser, or a "feature" in my code