Old 14th February 2002, 21:19   #1
everett
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
everett is offline   Reply With Quote
Old 14th February 2002, 22:33   #2
breejns
Senior Member
 
Join Date: Sep 2001
Location: Netherlands
Posts: 161
Send a message via ICQ to breejns
Re: Need PHP Song History Help!!!

Quote:
Originally posted by everett
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

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
breejns is offline   Reply With Quote
Old 15th February 2002, 13:27   #3
everett
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
everett is offline   Reply With Quote
Old 19th February 2002, 12:10   #4
couch-potato
Senior Member
 
couch-potato's Avatar
 
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 !
couch-potato is offline   Reply With Quote
Old 20th February 2002, 06:15   #5
Alligator427
Junior Member
 
Alligator427's Avatar
 
Join Date: Feb 2002
Posts: 31
Hmmm this script is for unix platform... is there the same for windows xp pro?
Alligator427 is offline   Reply With Quote
Old 20th February 2002, 13:58   #6
couch-potato
Senior Member
 
couch-potato's Avatar
 
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
couch-potato is offline   Reply With Quote
Old 27th February 2002, 23:30   #7
li1997
Member
 
Join Date: Nov 2000
Location: Narragansett, RI, USA
Posts: 78
Send a message via AIM to li1997
You can try this..

You set your own refresh rate...

http://www.kription.com/scxml/recent.html

-kription
li1997 is offline   Reply With Quote
Old 28th February 2002, 05:02   #8
X Gryphon X
Junior Member
 
X Gryphon X's Avatar
 
Join Date: Feb 2002
Location: Seattle, WA, USA
Posts: 29
Send a message via ICQ to X Gryphon X Send a message via AIM to X Gryphon X Send a message via Yahoo to X Gryphon X
I am also using Shoutcast status

It is great, here is what I did with it.
http://www.thzclan.com/bbsradio/scast/redir2.php

X Gryphon X is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump