Here is what I'm looking for. I have a .php that grabs variables from an API (Name/Price). I want to have the data cached every hour (via con job already set up) to an XML file. Then when the .htm is opened, I want it to pull the cached data from the XML. This way the API doesn't get bogged down by inquiries directly from a .php being used constantly.

Any suggestions?

This is the current script (for Eve-Online)

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<body bgcolor="black">
<font color="cyan" size=4>
<?php

$typeids=array(34,35);
$url="http://api.eve-central.com/api/marketstat?regionlimit=10000002&typeid=".join('&typeid=',$typeids);
$pricexml=file_get_contents($url);
$xml=new SimpleXMLElement($pricexml);
foreach($typeids as $typeid)
{
$item=$xml->xpath('/evec_api/marketstat/type[@id='.$typeid.']');
$price= (float) $item[0]->sell->percentile;
$price=round($price,2);
echo $typeid." ".$price."\n";
}

?>
</html>

As you see, it currently just throws the information out every time it's loaded in my browser.
See Here