<?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"; } ?>
info at phpclasses dot org