PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of V. Yanson   WMSServer   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example usage
Class: WMSServer
Retrieve statistics about a Windows Media server
Author: By
Last change: error on line 25 ;)
Date: 17 years ago
Size: 2,218 bytes
 

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";
}

?>