Are you wanting to create a irc bot or a web based application to provide automated match details about specific games from quakelive? Well this class is exactly what your looking for. The object of this class is to pull match details from quakelive and store then in a number of public vars that you can recall or access once you have initiated the class.
Download MatchPoll.zip (9 downloads)
You can init the class with the following example. with this idea you would want to use a url to start the process with something like
//http://mysite.com/?match=20823155&type=CA
include('matchPoll.php');
matchDetail($_GET['match'], $_GET['type']);
You can also use something like this.
if($_POST['action' == 'submit']){
include('matchPoll.php');
$bits = explode('/', $_POST['uri']);
$type = $bits[sizeof($bits)];
$match = $bits[(sizeof($bits)-1)];
matchDetail($match, $type);
}
This script is in alpha form so you may have to play with it. I will make updates and changes later as they are required.








