Advertisement
Fuzzysteve

Untitled

May 5th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. <?
  2.             $typeid=491;
  3.             $url="http://api.eve-central.com/api/marketstat?regionlimit=10000002&typeid=".$typeid;
  4.             $pricexml=file_get_contents($url);
  5.             $xml=new SimpleXMLElement($pricexml);
  6.             $item=$xml->xpath('/evec_api/marketstat/type[@id='.$typeid.']/sell');
  7.             $price= (float) $item[0]->percentile;
  8.             $price=round($price,2);
  9.             echo $price;
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement