Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Get User Profile Data Using ID
- $xml = @simplexml_load_file("http://steamcommunity.com/profiles/$steamid/?xml=1");
- if(!empty($xml) && !isset($xml->error)) {
- $username = $xml->steamID; // Example: steamcommunity.com/profiles/76561198077095031/?xml=1
- } else {
- $username = "Not Found"; // Example: steamcommunity.com/profiles/0/?xml=1
- }
- return $username;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement