Hello. I play Counter Strike in the league CAL, UGS, and XPL. I am in the process of designing our teams website and I was wondering if anyone could help me with a simple script to post scores after a match or if it is easier...just a script that extracts the scores out of the caleague.com website...they have XML http://caleague.com/?page=xml if it is easier than extraction...I just need the match information in some sort of poster or automatic updating so that i dont have to edit HTML every day.
**Edit : Moved to volunteer**
Match posting PHP Script?
Moderator: General Moderators
I am really busy school right now so if someone could make it I would be more than greatful for it. I'm sure if I had the time I could chop up a simple news posting code and get what I need but I don't have the time right now. It doesnt even have to be that complex. If I knew how to parse XML I wouldnt have this problem =D
here is a small sample
now it's only a matter of finding the right index in the array.
Code: Select all
$data = file_get_contents('http://example/foo.bar');
// parse data into array
$parser = xml_parser_create();
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
xml_parse_into_struct($parser, $data, $vals, $index);
xml_parser_free($parser);
print_r($vals);