![]() |
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 |
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 |
Quote:
thx ... |
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 |
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 |
/me goes and hammers refresh
|
Just wondering if anyone might have an ASP version to KXRMs PHP code solution for online/offline script. :confused:
Thanks Browsing:) |
I need an ASP version to KXRMs PHP code solution for online/offline script please...
|
Well, no one has posted one in this thread since it started 4 years ago :) But maybe there's one out there.......
PHP > ASP ;) |
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 |
| All times are GMT. The time now is 14:22. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.