PHP Steamcast XML Stats Parser
- Jay
- Will work for food (Administrator)
- Posts: 3022
- Joined: Mon Jan 14, 2002 12:48 am
- Location: Next Door
- Contact:
PHP Steamcast XML Stats Parser
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.
Example:
$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:
www.radiotoolbox.com/steamcast/getsteamstats.phps
and in action at:
www.radiotoolbox.com/steamcast/getsteamstats.php
Example:
$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:
www.radiotoolbox.com/steamcast/getsteamstats.phps
and in action at:
www.radiotoolbox.com/steamcast/getsteamstats.php
- Jay