PHP Classes
Icontem

File: example.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of V. Yanson  >  WMSServer  >  example.php  
File: example.php
Role: Example script
Content type: text/plain
Description: example usage
Class: WMSServer
Retrieve statistics about a Windows Media server
 

Contents

Class file image Download
<?php

include_once('class.WMSServer.php');

$display_counters['CurrentCounters']['CacheDownloads']                         = 'Cache Downloads';
$display_counters['CurrentCounters']['ConnectedPlayers']                       = 'Connected Players';
$display_counters['CurrentCounters']['ConnectionRate']                         = 'Connection Rate';
$display_counters['CurrentCounters']['FileReadRate']                           = 'File Read Rate';
$display_counters['CurrentCounters']['IncomingBandwidth']                      = 'Incoming Bandwidth';
$display_counters['CurrentCounters']['LateReadRate']                           = 'Late Read Rate';
$display_counters['CurrentCounters']['LateSendRate']                           = 'Late Send Rate';
$display_counters['CurrentCounters']['OutgoingDistributionAllocatedBandwidth'] = 'Outgoing Distribution Allocated Bandwidth';
$display_counters['CurrentCounters']['OutgoingDistributionConnections']        = 'Outgoing Distribution Connections';
$display_counters['CurrentCounters']['OutgoingDistributionSendRate']           = 'Outgoing Distribution Send Rate';
$display_counters['CurrentCounters']['PlayerAllocatedBandwidth']               = 'Player Allocated Bandwidth';
$display_counters['CurrentCounters']['PlayerSendRate']                         = 'Player Send Rate';
$display_counters['CurrentCounters']['StreamErrorRate']                        = 'Stream Error Rate';
$display_counters['CurrentCounters']['StreamingHTTPPlayers']                   = 'Streaming HTTP Players';
$display_counters['CurrentCounters']['StreamingMMSPlayers']                    = 'Streaming MMS Players';
$display_counters['CurrentCounters']['StreamingPlayers']                       = 'Streaming Players';
$display_counters['CurrentCounters']['StreamingRTSPPlayers']                   = 'Streaming RTSP Players';
$display_counters['CurrentCounters']['UDPResendRequestsRate']                  = 'UDP Resend Requests Rate';
$display_counters['CurrentCounters']['UDPResendsSentRate'

$stats = new WMSServer();

foreach(
$display_counters['CurrentCounters'] as $counter => $title)
{
    echo 
$title ': ' $stats->getCurrentCounter($counter) . "<br />\n";
}

?>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products