Sep 182007
Every so often I get a small surge of creativity which enables me to dismantle someone else’s work and twist it to my own nefarious purpose. In the latest of this irregular series, I present: the Bioshock gamercard sig.

Uses my gamercard parser thing to dynamically update the score, and stuff. Nothing particularly special, perhaps, but I like it.
5 Responses to “PhotoShock”
Sorry, the comment form is closed at this time.

Ooh, clever…
Thanks. :)
Hi,
I have been playing with your parser (awesome work btw) and I have a few questions.
I am at work, and my webhost is using PHP5. allow_url_fopen is on, and I know I am getting data. However, the domxml functions are not available in PHP5. I found a script that supposedly makes it all backwards compatible, and the script runs but appears blank now. I was wondering if you would contact me so that we can talk about getting this script to work in PHP5. I do not know nearly enough about parsing text in php to try this myself. Please contact me at mike dot conway at wiredbyte dot com. Thanks.
You need to include the parser script in the code that you want to use the data in, and call getGamerCard(), which returns a GamerCard object with all of the information in it. So you do:
$card = getGamerCard("MyGamertag");
print($card->score);
And you should get the gamerscore displayed.
Thanks, I actually figured it out. I think my biggest problem was the PHP5 compatibility because PHP5 uses DOM and not DOMXML.
I did get it to work though, thanks for the help :)