|
|
#1 |
|
Junior Member
Join Date: Feb 2001
Location: Third planet around the Sun
Posts: 32
|
any simple offline/online script?
I need a little simple online/offline scripts...
...i hope in PHP..... for what? The XML parser don't show when the server is offline... for example in mi signature (random generated), sometime show the status of my Shoutcast Stream (song name and time) but when the radio is offline, the information is still the same, but i want to make the sig to change something like Now Offline, try later To make this little thing kind of work..i put the last update time(Ultima Actualizacion in spanish in the signature), to show the strem is not avaible since that time... i hope someone can help me |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Apr 2000
Posts: 4,491
|
In 1.8.9 of the DNAS there is STREAMSTATUS in the XML. If it is 1 then the DSP is connected, if it's 0 then no DSP, so the stream is down.
Tom |
|
|
|
|
|
#3 | |
|
Junior Member
Join Date: Feb 2001
Location: Third planet around the Sun
Posts: 32
|
Quote:
thx ... |
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Apr 2000
Posts: 4,491
|
Yeah an update would probably be the easiest route. You could call 7.html and extract the data (one of those numbers is STREAMSTATUS I forget which), however you would be opening two sockets. I suppose you could connect to index.html and extract the song title and stream status from there with only opening one socket if for some reason you are really attached to 1.8.3.
Tom |
|
|
|
|
|
#5 |
|
Moderator Alumni
Join Date: May 2000
Location: Next Door
Posts: 8,942
|
Much easier, just do this
code: Yummy On or off sign, you can easily replace with images or just continue using text. On heavy traffic sites I don't recommend using this script as it will flood your server. See in action here -Jay | Radio Toolbox.com |
|
|
|
|
|
#6 |
|
Major Dude
Join Date: Dec 2000
Posts: 604
|
/me goes and hammers refresh
|
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Aug 2002
Posts: 5
|
Just wondering if anyone might have an ASP version to KXRMs PHP code solution for online/offline script.
Thanks Browsing
|
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Apr 2006
Posts: 11
|
I need an ASP version to KXRMs PHP code solution for online/offline script please...
|
|
|
|
|
|
#9 |
|
Major Dude
Join Date: Jan 2006
Posts: 632
|
Well, no one has posted one in this thread since it started 4 years ago
But maybe there's one out there.......PHP > ASP
|
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Apr 2006
Posts: 11
|
Yes, 4 years ago.
![]() I tried PHP to ASP converters but the converted code didn't work. I don't know these languages but my guess is a command like "fsockopen" doesn't exist in ASP. Anyway, I've found later that serverstatus with ASP has been discussed here: http://forums.winamp.com/showthread....hreadid=135235 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|