I'm not going to repeat too many of the things I've already said.  If you haven't already, please 
read over the information at these URLS:

http://www.utdallas.edu/~madcoder/coding/madquery.php <- Requirements for running this script
http://www.utdallas.edu/~madcoder/fire1.php <- example showing the class being used to query 3 servers on one web page.
http://server.counter-strike.net/cgi-bin/ib4/ikonboard.cgi?act=ST&f=6&t=96&st=0 <- Forum topic at Counter-Server
http://server.counter-strike.net/cgi-bin/dlbot/dl.pl?madquery <- Download link ... You've probably already done this :o


A very brief example, showing how the class should be used.  Keep in mind that this is a class, and as such,
does not explicitly write any details of the server out to the browser.  It is entirely up to you, the user,
to interface the class with your own site design and layout.

----
<? include ("/path/to/madquery.php"); /* Must be valid for execution, and accessible to the web server */
$myserver = new madQuery("a.b.c.d",27015); /* your server's IP and port */
$myserver->getdetails();
$myserver->getplayers();
?>
<body>Your site, as normal...
where the details should go, you'll do something like this:
Server hostname: <?=$myserver->mHostname();?><BR>
Playing map: <?=$myserver->mMap();?><BR>
Players: <?=$myserver->mActive();?> out of <?=$myserver->mMax();?><BR>
Web Server's ping: <?=$myserver->mPing();?><BR>
Players:<br>
<? print_r( $myserver->mPlayerData() ); /* a quick, cheap, built-in way of displaying the returned array */ ?>
Look in the cl*ss for the other ->m___() results.
----

Copyright (C) 2002 madCoder
Code may be used, as long as all copyright notices remain intact, and no changes are made to the source code,
without explicit permission from madCoder.

For all permissive questions, (I will delete all support requests) email me at: madcoder@student.utdallas.edu

And if anyone is familar with the server protocol's "details" query, would you *please* explain wtf the 12th
byte from the end is for?? (the one after the FTP string's null term)