<?php namespace Acme\Steam;
class SteamValidation{ private $steam64Id; public function __construct( $steam64Id ) { $this->steamData = new \SteamId( (string)$steam64Id ); $this->steam64Id = $steam64Id; }
...
<?php
use Ssms\Steam\SteamValidation;
class SteamController extends BaseController {
// 1) Get $steam64Id
// var_dump( $steam64Id ) = string(17) "76561197960435530" (Robin Walker)
$v = new SteamValidation( $steam64Id );
...
SteamCondenserException
XML could not be parsed: String could not be parsed as XML
/home/user/public_html/acme/vendor/koraktor/steam-condenser/lib/steam/community/XMLData.php (Line 38)
new \SteamId( (string)$steam64Id );
new \SteamId( $steam64Id );
Sebastian
Sorry
The Steam Community is currently unavailable. Please try again later.
Error 503 Service Unavailable
XID: 2488044640
--To view this discussion on the web visit https://groups.google.com/d/msgid/steam-condenser/23392fd7-bf94-4940-9152-fbf88d210113%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Steam Condenser" group.
To unsubscribe from this group and stop receiving emails from it, send an email to steam-condens...@googlegroups.com.
To post to this group, send email to steam-c...@googlegroups.com.
protected function getData($url) { if( ! $xml = @file_get_contents($url) ) { $errorMessage = "An error occurred when retrieving XML from the Steam server . HTTP Response: " . $http_response_header[0]; throw new SteamCondenserException($errorMessage, 0); } try { return @new SimpleXMLElement($xml); } catch (Exception $e) { $errorMessage = "XML could not be parsed: " . $e->getMessage(); if ((float) phpversion() < 5.3) { throw new SteamCondenserException($errorMessage, 0); } else { throw new SteamCondenserException($errorMessage, 0, $e); } } }
--
You received this message because you are subscribed to the Google Groups "Steam Condenser" group.
To unsubscribe from this group and stop receiving emails from it, send an email to steam-condens...@googlegroups.com.
To post to this group, send email to steam-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/steam-condenser/c6cd60b9-424b-4648-ac11-bb961b9ccfb3%40googlegroups.com.
Did you already start working on a PR or are you still interested in doing one? Otherwise I'll implement this myself this weekend.
Am Freitag, 14. Februar 2014 schrieb Elliot Hesp :
Well I added the following code, and it seems to work - well, at least shows an error that relates to what's going on:--
protected function getData($url) {if( ! $xml = @file_get_contents($url) ) {$errorMessage = "An error occurred when retrieving XML from the Steam server . HTTP Response: " . $http_response_header[0];throw new SteamCondenserException($errorMessage, 0);}try {return @new SimpleXMLElement($xml);} catch (Exception $e) {$errorMessage = "XML could not be parsed: " . $e->getMessage();if ((float) phpversion() < 5.3) {throw new SteamCondenserException($errorMessage, 0);} else {throw new SteamCondenserException($errorMessage, 0, $e);}}}I saw your post on the WebApi part (stackoverflow), not sure how to use that at the moment but can look into it. I'll plonk a pull request tomorrow or something, but feel free to show me the correct way of doing it using the WebApi.Thanks!Elliot
You received this message because you are subscribed to the Google Groups "Steam Condenser" group.
To unsubscribe from this group and stop receiving emails from it, send an email to steam-condenser+unsubscribe@googlegroups.com.
To post to this group, send email to steam-condenser@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to steam-condens...@googlegroups.com.
To post to this group, send email to steam-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/steam-condenser/3baf438f-2d39-4ecf-905c-87e343efda6c%40googlegroups.com.