PHP Steamcast XML Stats Parser

Steamcast is a stand alone server that combines the features of SHOUTcast and Icecast2 and more to make one mega awesome server.
Post Reply
User avatar
Will work for food (Administrator)
Posts: 2918
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door

PHP Steamcast XML Stats Parser

Post by Jay »

I quickly whipped up an PHP script which will parse your Steamcast stats. Feel free to use it for whatever needs you might have. You can also modify it easy by using the Tag name in the $sources array.

$sources['/mount.mp3']['NAME'] holds the name of the stream
$sources['/mount.mp3']['META_SONG'] holds the current song
$sources['/mount.mp3']['DESCRIPTION'] would hold the description
$sources['/mount.mp3']['GENRE'] holds the genre

you get the idea.

This script is by no means noob friendly so an understanding php is needed to really customize it ;)

The script can be found at:

and in action at:
- Jay

Post Reply