ErrorException: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: Entity: line 2: parser error : XML declaration allowed only at the start of the document - library/Steam/Helper/Steam.php:38
simplexml_load_file(http://steamcommunity.com/profiles/76561198047744096/games/?xml=1) [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: failed to open stream: HTTP request failed! HTTP/1.1 503 Service Unavailable - library/Steam/Helper/Steam.php:49
I've checked and found that I've got Unknown Steam Account too, login and message user info part work fine ...Ya I get an Unknown Steam Account as well, which I find it strange, unless Valve did some modifications of it's own in the past couple of days haha.
public function getUserInfo($steam_id) {
// cURL
curl_setopt($this->ch, CURLOPT_URL, "http://steamcommunity.com/profiles/{$steam_id}/?xml=1");
$result = curl_exec($this->ch);
$xml = simplexml_load_string($result);
if(!empty($xml)) {
return array(
'username' => $xml->steamID,
'avatar' => $xml->avatarFull,
'icon' => $xml->avatarIcon,
'state' => $xml->onlineState
);
} else {
return array(
'username' => "Unknown Steam Account",
'avatar' => "Ruh Roh!"
);
}
}
I'm also having some problems and this may be from what Bubka3 mentioned with the open_basedir enabled
View attachment 28909
We use essential cookies to make this site work, and optional cookies to enhance your experience.