Match posting PHP Script?

Looking for volunteers to join your project? Need help with a script but can't afford to pay? Want to offer your services as a volunteer to build up your portfolio? This is the place for you...

Moderator: General Moderators

Post Reply
woodfinx
Forum Newbie
Posts: 3
Joined: Sun Jan 16, 2005 2:03 pm

Match posting PHP Script?

Post by woodfinx »

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**
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

so you want someone to do this for you, or would you rather we guide along the path of creation yourself?
woodfinx
Forum Newbie
Posts: 3
Joined: Sun Jan 16, 2005 2:03 pm

Post by woodfinx »

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
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

here is a small sample

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);
now it's only a matter of finding the right index in the array.
woodfinx
Forum Newbie
Posts: 3
Joined: Sun Jan 16, 2005 2:03 pm

Post by woodfinx »

rofl well if you could show me how to get just my teams matches that would be great I dont really understand that...=/
Post Reply