Jump to content

Steam XML Question


Recommended Posts

Hey guys,


I'm working on a little image thingy.  What I want to do, is use a URL such as ,


Grab data from it, put the into variables and create an image with the data.


I read the tutorial on this website and sort of got stuck.. with external XML files, ALSO this doesn't look like your normal XML file.

Here is the code I have thus far.. I got stuck at the 'playerstats' part..



$rss = new SimpleXMLElement('http://steamcommunity.com/profiles/76561197968575517/stats/L4D2/?xml=1', null, true);

foreach($rss->xpath('playerstats') as $item)


        echo <<<EOF

        <p> {$item->steamID64} <br />

        {$item->hoursPlayed} </p>




Link to comment
Share on other sites

This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.