Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Shoutcast Technical Support (http://forums.winamp.com/forumdisplay.php?f=86)
-   -   Need PHP Song History Help!!! (http://forums.winamp.com/showthread.php?t=75840)

everett 14th February 2002 21:19

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

breejns 14th February 2002 22:33

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

everett 15th February 2002 13:27

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

couch-potato 19th February 2002 12:10

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 !

Alligator427 20th February 2002 06:15

Hmmm this script is for unix platform... is there the same for windows xp pro?

couch-potato 20th February 2002 13:58

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

li1997 27th February 2002 23:30

You can try this..

You set your own refresh rate...

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

-kription

X Gryphon X 28th February 2002 05:02

I am also using Shoutcast status

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

:up:


All times are GMT. The time now is 16:18.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.