<?php
echo getxml();
function getxml(){ // Gold $remote_gold_contents = file_get_contents("http://xml.dgcsc.org/xml.cfm?password=YOUR_PASSWORD&action=GoldBE"); $local_gold_path = 'gold.xml'; file_put_contents($local_gold_path, $remote_gold_contents); $remote_gold_contents = file_get_contents("http://xml.dgcsc.org/xml.cfm?password=YOUR_PASSWORD&action=GoldBOE"); $local_gold_path = 'goldounces.xml'; file_put_contents($local_gold_path, $remote_gold_contents);
// Silver $remote_silver_contents = file_get_contents("http://xml.dgcsc.org/xml.cfm?password=YOUR_PASSWORD&action=SilverBE"); $local_silver_path = 'silver.xml'; file_put_contents($local_silver_path, $remote_silver_contents); $remote_silver_contents = file_get_contents("http://xml.dgcsc.org/xml.cfm?password=YOUR_PASSWORD&action=SilverBOE"); $local_silver_path = 'silverounces.xml'; file_put_contents($local_silver_path, $remote_silver_contents);
// Platinum $remote_platinum_contents = file_get_contents("http://xml.dgcsc.org/xml.cfm?password=YOUR_PASSWORD&action=PlatinumBE"); $local_platinum_path = 'platinum.xml'; file_put_contents($local_platinum_path, $remote_platinum_contents); $remote_platinum_contents = file_get_contents("http://xml.dgcsc.org/xml.cfm?password=YOUR_PASSWORD&action=PlatinumBOE"); $local_platinum_path = 'platinumounces.xml'; file_put_contents($local_platinum_path, $remote_platinum_contents);
// Palladium $remote_palladium_contents = file_get_contents("http://xml.dgcsc.org/xml.cfm?password=YOUR_PASSWORD&action=PalladiumBE"); $local_palladium_path = 'palladium.xml'; file_put_contents($local_palladium_path, $remote_palladium_contents); $remote_palladium_contents = file_get_contents("http://xml.dgcsc.org/xml.cfm?password=YOUR_PASSWORD&action=PalladiumBOE"); $local_palladium_path = 'palladiumounces.xml'; file_put_contents($local_palladium_path, $remote_palladium_contents);
}?>