I managed to get a full output. I will post my code here. It's a mixup from the gamertag-lib. Someone can help me out to draw a card from it?
if (!$_REQUEST['action']) {
?>
}
?>
[/PHP]
test.php
[php]
include('./gamercard-lib.php');
//cookie.txt must have write perms!
$gc = new Gamercard();
function Test($tag,$gc){
//$gc- gamertag
//$gc- instance of GamerCard Class
//fetch and show information from gamertag
$gc->fetchArray($tag);
echo "[gamertag] => $gc->gamertag
\n";
echo "[localizedURL] => $gc->localizedURL
\n";
echo "[subscription] => $gc->gamertagstyle
\n";
echo "[pictureURL] => $gc->gamertile
\n";
echo "[reputation] => $gc->gamerrep_val
\n";
echo "[scoreImageURL] => $gc->gamerrep_small
\n";
echo "[gamerscore] => $gc->gamerscore
\n";
echo "[gamerzone] => $gc->gamerzone
\n";
echo "[gametitle] => $gc->gametitle1
\n";
echo "[compareURL] => $gc->compareURL1
\n";
echo "[titleurl] => $gc->titleurl1
\n";
echo "[gametitle] => $gc->gametitle2
\n";
echo "[compareURL] => $gc->compareURL2
\n";
echo "[titleurl] => $gc->titleurl2
\n";
echo "[gametitle] => $gc->gametitle13
\n";
echo "[compareURL] => $gc->compareURL3
\n";
echo "[titleurl] => $gc->titleurl3
\n";
echo "[gametitle] => $gc->gametitle14
\n";
echo "[compareURL] => $gc->compareURL4
\n";
echo "[titleurl] => $gc->titleurl4
\n";
echo "[gametitle] => $gc->gametitle15
\n";
echo "[compareURL] => $gc->compareURL5
\n";
echo "[titleurl] => $gc->titleurl5
\n";
}
$tag = $_GET[gamertag];
Test($tag,$gc);
?>
[/php]
gamertag-lib.php
[php]
class Gamercard
{
function fetchArray($tag){
$tag = str_replace(" ","+",$tag);
$gamertag = $this->_get_web("http://live.xbox.com/". $tag .".card");
preg_match('#