Are you tired of checking all of your Icecast & Shoutcast servers one by one ? This script will speed the process for you and allow you to get info from all of your servers at once and much more. Its also very easy to customize.
Get information from All your Shoutcast & Icecast servers at once!
Features
Connect to unlimited number of servers at once Reads details of single Icecast/Shoutcast server and returns array of information including listeners Reads details from all Icecast/Shoutcast servers at once and sums them up (Including listeners) Uses APC Cache to temporary store details from all servers to speed up requests per second.
Data u can use for your web interface (Single Shoutcast or Icecast server display’s current track as well!):
Array ( [listeners] => 2 [peak] => 26 [listen-time] => 42405 [hits] => 1605 [listeners-list] => Array ( [0] => Array ( [HOSTNAME] => 50.7.31.146 [USERAGENT] => WinampMPEG/5.09 [CONNECTTIME] => 42405 [UID] => 004F74A4 [SERVER] => Shoutcast 320kbps (MP3) )
[1] => Array ( [HOSTNAME] => 192.168.1.1 [USERAGENT] => Mozilla/5.0 (Windows NT 6.2; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0 [CONNECTTIME] => 11067 [UID] => 34820 [SERVER] => Icecast 320kbps (OGG) )
)
[status] => 1 )
Note: I will add alternative layouts if requested by buyers. So please do not hesitate to post a request.
Changes log
26.5.2013 - v1.02 - Fixed problem when one stream in array caused issues to the totals calculator function
26.5.2013 - v1.02 - Fixed & Added support for Icecast KH5+ - Fixed some minor bugs
23.5.2013 - v1.01 - Removed CURL limit to 500ms timeout - Fixed issue with multiple mounts confusing script (Icecast) - Added easier object calls (webradio::all($array) & webradio::info($array, $serverID)
10.5.2013 - v1.00 - Initial Release