This doesnt pull any data from pimpmygamercard.com
All data is derived direct from Duncan MacKenzie Live feed which has been going up and down lately.
There has been alot of changes in the Live service lately and could be partly the problem.
I suppose one way to prevent things from going down would be to check the file
and if it returns empty from duncanmackenzie, to cancel update and use old data from local xml.
Its easy actually if you know simplexml()
This mod pulls the data using curl() which creates a local xml file.
Then uses simplexml() to output any needed data.
$xml = simplexml_load_file(THE-LOCAL-XML);
$parent = $xml->parent;
$child = $xml->parent->child;
|