ok i need some help with this code i don't really understand how to get it to do what i want but i've got the first step done! it gets a web page and searchs for a certain string, like player1 has been slain by player2 and it returns them.. i want to add their names to a array and add one everytime they have a "win" and then also add one to another array for a "loss"
$gossip_file = file("http://www.materiamagica.com/towne/gossip");
while(list($line_num, $line) = each($gossip_file))
{
if(eregi("(\:+) (([a-zA-Z0-9_-])+) was slain by (([a-zA-Z0-9_-])+) in player\-to\-player combat\.", $line, $info))
{
}
}
?>
this returns $info[2] with the winner and $info[4] which is the loser, i want to add them to an array, any help guys/gals? please?
thanks
Zak