|
|
|
|
#1 |
|
Junior Member
Join Date: Nov 2001
Posts: 20
|
Need PHP Song History Help!!!
Hey guys,
The forums here have been extemely helpful, but I have one final problem that remains to be solved. I'm using PHP to display the current song and number of listeners on my website. Everything is working fine, but I would like to display the last 10 to 20 songs played. I know that the Shoutcast server writes to a history log and I have mine set to update the log every 30 seconds. Is there any way to have the log updated only after each new song? Or, is there a different way to keep track of the previously played songs, and have them logged in a way that is useable by PHP? Any help with this matter would be greatly appreciated. Everett |
|
|
|
|
|
#2 | |
|
Senior Member
|
Re: Need PHP Song History Help!!!
Quote:
http://www.hotscripts.com there was a script in the php listing for some while... just search the listing for shoutcast.. if it's still there it will show up.. otherwise use the xml stats... and a xml parsers... you prolly get some errors.. to go around them.... make a cronjob fetching the xml stats and save them locally ... and make a parser for the local file... made a script once, but i don't have it anymore... but maybe it's still somewhere on the forums here.. Oh don't ask if i can write it again.. cause for now i won't too busy with other things Just a pre-note :P
|
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Nov 2001
Posts: 20
|
Still lost
Hey thanks for the info. I checked out HostScripts but the only script that they had to retain song history was offline. Should I try doing this in ASP? Before I get ahead of myself, I'm not a programmer, and I'm just looking for an easy reliable way of doing this. Thanks again,
E |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Feb 2002
Location: mother earth
Posts: 100
|
hello
I'm using the php script called : SHOUTcast Status from casterclub.com and it works fine for me. If you a little into php you can customize this script! it's very eazy. regards thomas ####################### ##.:: www.lounge-radio.ch ::.## ####################### don't hang around ! |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Feb 2002
Posts: 31
|
Hmmm this script is for unix platform... is there the same for windows xp pro?
|
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Feb 2002
Location: mother earth
Posts: 100
|
This script is written in PHP, its' for win and X. the only thing you need is a local webserver like apache.org or something else that support php and the php4 Module installed on your winXP box.
Windows Binaries All Windows binaries can be used on Windows 95/98/Me and on Windows NT/2000/XP >> php.net My website hoster use this kind of webserver and this script in actions looks like that If there is a simple soloution anywhere I'm interessed too |
|
|
|
|
|
#7 |
|
Member
|
You can try this..
You set your own refresh rate... http://www.kription.com/scxml/recent.html -kription |
|
|
|
|
|
#8 |
|
Junior Member
|
I am also using Shoutcast status
It is great, here is what I did with it. http://www.thzclan.com/bbsradio/scast/redir2.php |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|