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.
It's the object oriented approach, bluesaga. You don't have to like it, but having a wrapper for the Card details is a good thing in my eyes. Why the functions aren't methods of the class I've no idea though.
I just feel having a whole class for 7 variables is a bit weird when you don't wrap the functions within the class aswell, its like forcing half a script to use a class and the other half to not worry. Its just weird and bad coding practice to do so.