A simple PHP class to query a Source engine server.
PHP:
require_once 'lib/SourceQuery.php';
$server = new SourceQuery('217.70.184.250', 27015);
$infos = $server->getInfos();
echo 'There is ' . $infos['players'] . ' player(s) on the server "' .$infos['name'] . '".';