Login   Register  
PHP Classes
elePHPant
Icontem

File: example1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Volkan K.  >  server.met Parser Class  >  example1.php  >  Download  
File: example1.php
Role: Example script
Content type: text/plain
Description: Example file
Class: server.met Parser Class
Extract server list information from ed2k files
Author: By
Last change:
Date: 6 years ago
Size: 459 bytes
 

Contents

Class file image Download
<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>