Login   Register  
PHP Classes
elePHPant
Icontem

File: sample1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tobias Salzmann  >  Q3MasterQuery  >  sample1.php  >  Download  
File: sample1.php
Role: Example script
Content type: text/plain
Description: Sample for fetching
Class: Q3MasterQuery
Retrieve the list of Quake 3 game servers
Author: By
Last change: just forgott the semicolon after include xD
Date: 4 years ago
Size: 260 bytes
 

Contents

Class file image Download
<?php
include ("q3masterquery.php");

// fetches all JK3 servers with version 1.01
$fetch = new Q3MasterQuery("masterjk3.ravensoft.com"2906026);
if (!
$fetch->error) {
    
print_r($fetch->result);
} else {
    echo 
"Errorcode: ",$fetch->error,"\n";
}
?>