Found this at simes.org. It's a class for fetching Xbox Live Gamertags. Pretty neat. I haven't looked through the entire code yet to see if there's stuff that needs to be fixed, etc. I'm new to OOP in PHP5, but this looks like it was written for PHP4. Someone correct me if I'm wrong. Enjoy.
function error_handler($errno, $errstr)
$url = "http://gamercard.xbox.com/" . urlencode($gamerTag) . ".card";
// Grab the gamercard - the card HTML is not valid xml (the base tag is not closed)
// but the "body" tag and its contents are a valid xml doc so we throw away the contents of the "head" tag.
// We don't need them anyway.