<xmp>
<?php
require('..' . DIRECTORY_SEPARATOR . 'server_met_reader.php');
$my_server_met = new server_met_parser;
$my_server_met->setlimit(50);
//$server_list = $my_server_met->parsefile('php://stdin');
//$server_list = $my_server_met->parsefile('/var/www/donk/server.met');
$server_list = $my_server_met->parsefile('server.met');
if ($server_list === false) {
echo $my_server_met->errlog;
} else {
var_dump($server_list);
}
?>
</xmp>
|