PDA

View Full Version : Serverstatus with ASP


daPhil
13th May 2003, 11:11
Hey, i couldn't find a nice serverstatuspage built in ASP, only PHP.. So i built one myself, i might aswell share it with you guys.. Get it here (http://www.daphil.com/files/get.asp?file=serverstatus.zip) :weird: :up: :winamp:

carbonke
13th May 2003, 22:27
I thank you very much for this script, which I could never find anywhere. It's simple and works as I wanted. Tested on my local asp enabled server. :)

Hopefully it will be working soon on my ISP server. The technician seemed to forget my request for an asp enabled web space. Still I cannot complain as they are hosting my website for free even though I have an internet connection with someone else.

My Website which is still under-going heavy construction and is not officially open yet - www.astrolabs.org

tks,
Kevin

rgATL
13th May 2003, 23:46
Isn't there an ASP (Java?) "now playing" in the radio tools? This could use a FesterBot. ;-)

rg.

DJHotIce
14th May 2003, 21:36
thanks!!! Great stuff! Whats a festerbot?

PC Radio Net
1st July 2003, 15:12
Does anybody know how to get this thing to work?

DJHotIce
1st July 2003, 15:54
if it can pull xml data, yes I would say there are asp tools, but I'm not a asp guy :D

Captain Bryan
4th July 2003, 01:35
I looked at this and I said Screw it...
Do you think I could get someone to fonfig it for me?
Pretty please?

FesterHead
4th July 2003, 20:50
No.

DJHotIce
4th July 2003, 20:56
lol

FesterHead
22nd August 2003, 02:31
Investigation notes the GET IT HERE link at the top of this thread has moved HERE (http://www.daphil.com/files/dev/finished_projects/serverstatus.zip).

daPhil
22nd August 2003, 07:00
Yeah, sorry bout that.. I forgot you guys :)

PC Radio Net
22nd August 2003, 17:31
Well, this is cool, but after I changed the server name, password and port to my own and uploaded the asp file, all I got was a page cannot be displayed.

daPhil
22nd August 2003, 19:38
Maybe the server does not have a XML renderer? A detailed errormessage would help me to solve this for you.

PC Radio Net
22nd August 2003, 19:47
Just go to http://www22.brinkster.com/pcradionetwork/Status.asp]The PC Radio Network[/url] and you can see for yourself. the file is uploaded to the server, but I don't have a link to it yet until I get it working.

daPhil
22nd August 2003, 20:47
That error comes from either you filling something in wrong or the DNAS is off. The script works, and is running at various places, here for example (with edited layout of course) http://www.sthlmlounge.com/?p=radio

PC Radio Net
22nd August 2003, 20:56
Ok. Perhaps you can see what's wrong if I post the code. here's what I have. Note: The password is not the ctual password. i changed it just for this posting:

<%
' ANOTHER SHOUTCAST STATUS PAGE

' By Philip 'daPhil' Johannessen, May 2003
' www.daphil.com
' me@daphil.com

'FEEL FREE TO EDIT LAYOUT TO SUIT YOUR SITE, THATS THE IDEA ;)


'USER DEFINED VARIABLES (CHANGE THESE)
ServerDomain = "http://pcradionetwork.no-ip.com" 'DOMAIN
ServerPass = "misfit" 'PASSWORD
ServerPort = "8000" 'PORT

'MAKE SERVERURL
ServerURL = "http://"& ServerDomain &":"& ServerPort &"/admin.cgi?pass="& ServerPass &"&mode=viewxml"

'INITIATE XMLDOM ENGINE
Set objXMLDOM = Server.Createobject("Microsoft.XMLDOM")
objXMLDOM.async = false
objXMLDOM.setProperty "ServerHTTPRequest", true
objXMLDOM.Load ServerURL

'CREATE COLLECTIONS AND STUFF
ServerStatus = objXMLDOM.SelectSingleNode("//STREAMSTATUS").text
StationName = objXMLDOM.SelectSingleNode("//SERVERTITLE").text
BitRate = objXMLDOM.SelectSingleNode("//BITRATE").text
ServerVersion = objXMLDOM.SelectSingleNode("//VERSION").text
MediaType = objXMLDOM.SelectSingleNode("//CONTENT").text
CurrentSong = objXMLDOM.SelectSingleNode("//SONGTITLE").text
Users = objXMLDOM.SelectSingleNode("//CURRENTLISTENERS").text
MaxUsers = objXMLDOM.SelectSingleNode("//MAXLISTENERS").text
Set SongHistory = objXMLDOM.SelectNodes("//SONG")
Set UserList = objXMLDOM.SelectNodes("//LISTENER")
%>

<html>
<head>
<title><%=StationName%></title>
<style>
body, td {
font-family: Trebuchet MS, Tahoma, Verdana;
font-size: 11px;
color: #000000;
}

.bigheader {
font-size: 40px;
}

.songtitle {
font-size: 20px;
}

.tables {
border-width: 1px;
border-style: solid;
border-color: #000000;
background: #EEEEEE;
}
</style>
</head>
<body>
<table align="center" width="700" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" colspan="2">
<font class="bigheader"><%=StationName%></font><br>
<% If ServerStatus = 0 Then %>
Server is currently down
</td>
<% Else %>
Shoutcast v<%=ServerVersion%> streaming <%=MediaType%> at <%=BitRate%> kbps
</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center">
Current song
<table width="100%" class="tables">
<tr>
<td align="center">
<font class="songtitle"><%=CurrentSong%></font>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td width="50%" align="center" valign="top">
Song history
<table cellpadding="2" cellspacing="0" border="0" class="tables" width="98%">
<% For Each Song In SongHistory %>
<% If NOT Song.SelectSingleNode("TITLE").text = CurrentSong Then%>
<tr>
<td><%=Song.SelectSingleNode("TITLE").text%></td>
</tr>
<% End If %>
<% Next %>
</table>
</td>
<td width="50%" align="center" valign="top">
Connected users - <%=Users%> / <%=MaxUsers%>
<table cellpadding="2" cellspacing="0" border="0" class="tables" width="98%" align="right">
<% For Each User In UserList %>
<tr>
<td><%=User.SelectSingleNode("HOSTNAME").text%> / <%=User.SelectSingleNode("USERAGENT").text%></td>
</tr>
<% Next %>
</table>
</td>
<% End If %>
</tr>
</table>
</body>
</html>
<%
'CLEAN UP
Set objXMLDOM = NOTHING
Set SongHistory = NOTHING
Set UserList = NOTHING
%>

daPhil
22nd August 2003, 21:20
Enter the serveraddress without "http://"

PC Radio Net
22nd August 2003, 21:38
Thank you so much. You've been a great help. I got it working. Now, all i gotta do is change the background colors. Thanks alot!

GaryW
25th August 2003, 20:03
i dont get this, i can go to your site with the asp file and it works fine, but when i go to http://www.noiseinfection.com/show/serverstatus.asp it asks me if i want to open or save a file.

daPhil
25th August 2003, 20:11
Originally posted by GaryW
i dont get this, i can go to your site with the asp file and it works fine, but when i go to http://www.noiseinfection.com/show/serverstatus.asp it asks me if i want to open or save a file.

Strange, seems to be some server-side problem, what kind of server is it? Does it even support ASP?

And this:
ServerDomain = "http://66.235.23.45:8000/listen.pls"
should be only the domain, like this:
ServerDomain = "66.235.23.45"

Maybe thats the problem, try changing it.

ruffdawg
27th December 2003, 15:42
I have the exact same problem but my domain doesnt have "http://" or "listen.pls" any suggestions?

ruffdawg
27th December 2003, 16:19
okay, i found the problem, i needed a .asp enabled server. I now have one and things are running smoothly... all but 1 thing. When I am not broadcasting, it just appears as "Page Cannot Be Displayed"... is there any way to get a "<Station Name> Is Offline" message? Pls Help. Thanx

omega1
30th December 2003, 12:14
Hi,

i tried to download the file, but cant find it anymore, anyone got a copy i can have? Either place it somewhere for me to down load or if its not too big, maybe email to me? omega1@arrakis.es

thanks guys

daPhil
30th December 2003, 13:36
http://www.daphil.com/files/dev/finished_projects/serverstatus.zip

omega1
30th December 2003, 17:15
thanks!

foresight
5th February 2004, 10:48
thanks for the script daPhil, now i've got the page up and running. only thing now is, i'd like to display only the last 5 songs played rather than the really long list that it generates for me. is this changed server side or can i change it with the script?

Sern
5th February 2004, 11:59
I dont understand... i have video/x-ms-asf asf asx loaded in my MIME settings and all i still keep getting is the code comeing up on the screen...
<%
' ANOTHER SHOUTCAST STATUS PAGE

' By Philip 'daPhil' Johannessen, May 2003
' www.daphil.com
' me@daphil.com

'FEEL FREE TO EDIT LAYOUT TO SUIT YOUR SITE, THATS THE IDEA ;)


'USER DEFINED VARIABLES (CHANGE THESE)
ServerDomain = "68.194.193.215" 'DOMAIN
ServerPass = "*****" 'PASSWORD
ServerPort = "8000" 'PORT

'MAKE SERVERURL
ServerURL = "http://"& ServerDomain &":"& ServerPort &"/admin.cgi?pass="& ServerPass &"&mode=viewxml"

'INITIATE XMLDOM ENGINE
Set objXMLDOM = Server.Createobject("Microsoft.XMLDOM")
objXMLDOM.async = false
objXMLDOM.setProperty "ServerHTTPRequest", true
objXMLDOM.Load ServerURL

'CREATE COLLECTIONS AND STUFF
ServerStatus = objXMLDOM.SelectSingleNode("//STREAMSTATUS").text
StationName = objXMLDOM.SelectSingleNode("//SERVERTITLE").text
BitRate = objXMLDOM.SelectSingleNode("//BITRATE").text
ServerVersion = objXMLDOM.SelectSingleNode("//VERSION").text
MediaType = objXMLDOM.SelectSingleNode("//CONTENT").text
CurrentSong = objXMLDOM.SelectSingleNode("//SONGTITLE").text
Users = objXMLDOM.SelectSingleNode("//CURRENTLISTENERS").text
MaxUsers = objXMLDOM.SelectSingleNode("//MAXLISTENERS").text
Set SongHistory = objXMLDOM.SelectNodes("//SONG")
Set UserList = objXMLDOM.SelectNodes("//LISTENER")
%>

<html>
<head>
<title><%=StationName%></title>
<style>
body, td {
font-family: Trebuchet MS, Tahoma, Verdana;
font-size: 11px;
color: #000000;
}

.bigheader {
font-size: 40px;
}

.songtitle {
font-size: 20px;
}

.tables {
border-width: 1px;
border-style: solid;
border-color: #000000;
background: #EEEEEE;
}
</style>
</head>
<body>
<table align="center" width="700" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" colspan="2">
<font class="bigheader"><%=StationName%></font><br>
<% If ServerStatus = 0 Then %>
Server is currently down
</td>
<% Else %>
Shoutcast v<%=ServerVersion%> streaming <%=MediaType%> at <%=BitRate%> kbps
</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center">
Current song
<table width="100%" class="tables">
<tr>
<td align="center">
<font class="songtitle"><%=CurrentSong%></font>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td width="50%" align="center" valign="top">
Song history
<table cellpadding="2" cellspacing="0" border="0" class="tables" width="98%">
<% For Each Song In SongHistory %>
<% If NOT Song.SelectSingleNode("TITLE").text = CurrentSong Then%>
<tr>
<td><%=Song.SelectSingleNode("TITLE").text%></td>
</tr>
<% End If %>
<% Next %>
</table>
</td>
<td width="50%" align="center" valign="top">
Connected users - <%=Users%> / <%=MaxUsers%>
<table cellpadding="2" cellspacing="0" border="0" class="tables" width="98%" align="right">
<% For Each User In UserList %>
<tr>
<td><%=User.SelectSingleNode("HOSTNAME").text%> / <%=User.SelectSingleNode("USERAGENT").text%></td>
</tr>
<% Next %>
</table>
</td>
<% End If %>
</tr>
</table>
</body>
</html>
<%
'CLEAN UP
Set objXMLDOM = NOTHING
Set SongHistory = NOTHING
Set UserList = NOTHING
%>

ruffdawg
5th February 2004, 12:05
You could be getting this because you do not a an ASP supported host. A good, free, ASP host that I know of is www.1asphost.com just enter the text into "Notepad" and save it as <whatever>.asp, then upload it to your host. Hope this helps :)

Sern
5th February 2004, 12:10
well isnt cant i just add in the mime handle?

ruffdawg
5th February 2004, 12:13
I'm not sure with all that mime stuff, what your looking for, it's much easier if you use PHP but if you still want to use ASP, i would just do what i said in the last post if you want the code to work.

imatchboxi
9th March 2004, 01:37
I am also trying to get the ASP Server Status script to run, but I am not having any luck. I keep getting the error:

Microsoft VBScript runtime error '800a01a8'

Object required: 'objXMLDOM.SelectSingleNode(...)'

/listen/radio/serverstatus.asp, line 26



The code is below, i've replaced the password with *'s only below for security purposes:

<%
' ANOTHER SHOUTCAST STATUS PAGE

' By Philip 'daPhil' Johannessen, May 2003
' www.daphil.com
' me@daphil.com

'FEEL FREE TO EDIT LAYOUT TO SUIT YOUR SITE, THATS THE IDEA ;)


'USER DEFINED VARIABLES (CHANGE THESE)
ServerDomain = "216.180.242.115" 'DOMAIN
ServerPass = "********" 'PASSWORD
ServerPort = "8008" 'PORT

'MAKE SERVERURL
ServerURL = "http://"& ServerDomain &":"& ServerPort &"/admin.cgi?pass="& ServerPass &"&mode=viewxml"

'INITIATE XMLDOM ENGINE
Set objXMLDOM = Server.Createobject("Microsoft.XMLDOM")
objXMLDOM.async = false
objXMLDOM.setProperty "ServerHTTPRequest", true
objXMLDOM.Load ServerURL

'CREATE COLLECTIONS AND STUFF
ServerStatus = objXMLDOM.SelectSingleNode("//STREAMSTATUS").text
StationName = objXMLDOM.SelectSingleNode("//SERVERTITLE").text
BitRate = objXMLDOM.SelectSingleNode("//BITRATE").text
ServerVersion = objXMLDOM.SelectSingleNode("//VERSION").text
MediaType = objXMLDOM.SelectSingleNode("//CONTENT").text
CurrentSong = objXMLDOM.SelectSingleNode("//SONGTITLE").text
Users = objXMLDOM.SelectSingleNode("//CURRENTLISTENERS").text
MaxUsers = objXMLDOM.SelectSingleNode("//MAXLISTENERS").text
Set SongHistory = objXMLDOM.SelectNodes("//SONG")
Set UserList = objXMLDOM.SelectNodes("//LISTENER")
%>

<html>
<head>
<title><%=StationName%></title>
<style>
body, td {
font-family: Trebuchet MS, Tahoma, Verdana;
font-size: 11px;
color: #000000;
}

.bigheader {
font-size: 40px;
}

.songtitle {
font-size: 20px;
}

.tables {
border-width: 1px;
border-style: solid;
border-color: #000000;
background: #EEEEEE;
}
</style>
</head>
<body>
<table align="center" width="700" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" colspan="2">
<font class="bigheader"><%=StationName%></font><br>
<% If ServerStatus = 0 Then %>
Server is currently down
</td>
<% Else %>
Shoutcast v<%=ServerVersion%> streaming <%=MediaType%> at <%=BitRate%> kbps
</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center">
Current song
<table width="100%" class="tables">
<tr>
<td align="center">
<font class="songtitle"><%=CurrentSong%></font>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td width="50%" align="center" valign="top">
Song history
<table cellpadding="2" cellspacing="0" border="0" class="tables" width="98%">
<% For Each Song In SongHistory %>
<% If NOT Song.SelectSingleNode("TITLE").text = CurrentSong Then%>
<tr>
<td><%=Song.SelectSingleNode("TITLE").text%></td>
</tr>
<% End If %>
<% Next %>
</table>
</td>
<td width="50%" align="center" valign="top">
Connected users - <%=Users%> / <%=MaxUsers%>
<table cellpadding="2" cellspacing="0" border="0" class="tables" width="98%" align="right">
<% For Each User In UserList %>
<tr>
<td><%=User.SelectSingleNode("HOSTNAME").text%> / <%=User.SelectSingleNode("USERAGENT").text%></td>
</tr>
<% Next %>
</table>
</td>
<% End If %>
</tr>
</table>
</body>
</html>
<%
'CLEAN UP
Set objXMLDOM = NOTHING
Set SongHistory = NOTHING
Set UserList = NOTHING
%>

monsterscootz
30th July 2004, 02:36
what file extension do i save it as ???

djqwest
30th July 2004, 03:12
Originally posted by monsterscootz
what file extension do i save it as ???

.asp

monsterscootz
30th July 2004, 03:33
thank you

monsterscootz
30th July 2004, 03:34
thank you

monsterscootz
30th July 2004, 03:35
thank you

aspdevstudio
31st July 2004, 14:41
daphil,

Like the script! I was using the script from casterclub:
http://www.casterclub.com/scast_asp2xml.php

I like yours better. I used the "split" function and "replace" function to tweak it to my needs
Check out my page http://www.pslradio.com

I split the Artist and song to make seperate so I could make links to amazon, mxtabs and sheetmusicplus and do a search based on my current song.
Check out my page
http://www.pslradio.com

Thumbs up on the script!

aspdevstudio
31st July 2004, 14:43
daphil,

Like the script! I was using the script from casterclub:
http://www.casterclub.com/scast_asp2xml.php

I like yours better. I used the "split" function and "replace" function to tweak it to my needs
Check out my page http://www.pslradio.com

I split the Artist and song to make seperate so I could make links to amazon, mxtabs and sheetmusicplus and do a search based on my current song.
Check out my page
http://www.pslradio.com

Thumbs up on the script!

aspdevstudio
31st July 2004, 15:04
Hi All,

I have tweaked daphil's script to split current "artist" and "song".

instead of it showing for example: "The Byrds - Turn Turn Turn"

You can display like so:

Artist: The Byrds
Song: Turn Turn Turn

Here is small update:

'CREATE COLLECTIONS AND STUFF
ServerStatus = objXMLDOM.SelectSingleNode("//STREAMSTATUS").text
StationName = objXMLDOM.SelectSingleNode("//SERVERTITLE").text
BitRate = objXMLDOM.SelectSingleNode("//BITRATE").text
ServerVersion = objXMLDOM.SelectSingleNode("//VERSION").text
MediaType = objXMLDOM.SelectSingleNode("//CONTENT").text

'CHANGE THIS LINE
'CurrentSong = objXMLDOM.SelectSingleNode("//SONGTITLE").text
'TO THIS LINE
strCurrentSong = objXMLDOM.SelectSingleNode("//SONGTITLE").text

Users = objXMLDOM.SelectSingleNode("//CURRENTLISTENERS").text
MaxUsers = objXMLDOM.SelectSingleNode("//MAXLISTENERS").text
Set SongHistory = objXMLDOM.SelectNodes("//SONG")
Set UserList = objXMLDOM.SelectNodes("//LISTENER")

'ADDED THESE LINES
SplitCurrentSong = split(strCurrentSong, "-")
strArtist = splitCurrentSong(0)
strSong = splitCurrentSong(1)
CurrentSong = "Artist: " & strArtist & "<br>Song: " & strSong
'END CHANGE - THATS IT

See it in action:

http://aspdevstudio.servemp3.com/movies/status.asp

Again daphil, good script!

CHEERS

djqwest
31st July 2004, 16:53
Originally posted by aspdevstudio
Hi All,

I have tweaked daphil's script to split current "artist" and "song".

this is nice! gonna implement tonight.

Quick question, how easy would it be to adapt this script for multiple servers?

We'd like to be able to display on one page what's playing on both our channels, one and two.

Any assistance is much appreciated!

aspdevstudio
31st July 2004, 18:55
djqwest,

multiple servers...One page...yes can be done. Already have clear thoughts. However will make post when completed.

CHEERS

feldhamer
25th August 2004, 16:04
where can i get daphils script from?

daPhil
26th August 2004, 08:45
Here ya go people: http://www.daphil.com/files/serverstatus.zip

..just updated it to v1.1! Enjoy.

trancegirl
15th October 2004, 21:45
I can't open that link daPhil ... could someone post the script here? ... the ones that were on the other pgs didn't work for me ... I'm trying to just have it be simple where I just copy it to the pg I want w/ little adjustments in html format... is there anything else I need to be aware of to make all this work?

aDcOoL
5th December 2004, 15:41
sorry for bringing up an old topic...but I think it's better than creating I new one...

How do you tweak the .asp file to suit your needs? Do you have to use notepad? Or can you use Frontpage to do it? How do you change it? LoL Cause right now if I added it to my site, it would take up half the space lol

someone please reply! thanks! :)

aDcOoL
5th December 2004, 20:25
bump...

daPhil
6th December 2004, 07:32
Its not hard to get it working if you have basic knowledge about www. But i dont recommend you use it if you dont even know basic HTML. The script has been downloaded a few hundred times and is running on many sites, so it does work.

First of all i can tell you that your webserver needs ASP support, I recommend IIS 5 or 6 wich is Microsofts own webserver. I dont even know if Chili! ASP (Sun) works, if you try it please let me know the result.

You can reach me via MSN Messenger if you get stuck: daphil@hotmail.com

Good luck!

aDcOoL
6th December 2004, 12:10
whooooooooops I didn't explain myself right..

I can get the server working and everything, I mean:
The layout of it..the visual...right now it takes up half my website LoL and I need to know how to make it LOOK smaller...the actual server runs fine...

thanks for the help so far...

daPhil
6th December 2004, 12:14
Yeah well thats where the basic HTML knowledge comes in, i cant teach you that :)

aDcOoL
6th December 2004, 12:20
oh...okay...so what should I do then?

daPhil
6th December 2004, 12:24
Originally posted by aDcOoL
oh...okay...so what should I do then?

Well it's hard to edit a webpage layout without knowing HTML i can imagine.. I dont know.. Get help from a friend who knows how to make webpages maybe?

aDcOoL
6th December 2004, 12:26
I know the most about making websites compared to my friends LOL Isn't that scary? uhhh...can you just give me some pointers or something? LOL! ...blah

aDcOoL
6th December 2004, 23:10
okay well all I really need is a very simple thing that says who's Djing,
Number of Listeners
Past 5 songs played!
and it has to be in ASP..

are there any scripts that are...simple? lol

please reply! Thank you...

PC Radio Net
6th December 2004, 23:29
Attached here is the asp file I'm using for my Now Playing link. Click on Now Playing to see how it looks. You can fiddle with the colors and html if you know how to get it looking like you want it.

aDcOoL
7th December 2004, 00:05
that's perrrffecctt that's exaaaaaaactly what I need! LOL! Thank you to everyone that helped me!!! lol :)

aDcOoL
7th December 2004, 00:15
wait..hold on...
that's a .txt file...how do I convert it to .asp?

EDIT: LoL whoops nevermind I figured it out ..LOL! Stupid me :)

PC Radio Net
7th December 2004, 00:30
Right click on it and choose save as, then name it Status.asp or anything other name you want.

aDcOoL
12th December 2004, 16:07
okay I had it working PERFECTLY, then all the sudden when I go to it and I'm online and everything, I'm greeted by this:

Microsoft VBScript compilation error '800a03f6'

Expected 'End'

/aDcOoL/server.asp, line 11

you can see it for yourself: http://a.1asphost.com/aDcOoL/server.asp

blah lol...please help thank youuuuuuu

aDcOoL
12th December 2004, 18:24
bump

aDcOoL
13th December 2004, 11:48
bump...

PC Radio Net..you there? lol :)

PC Radio Net
13th December 2004, 13:34
I'm not exactly sure why you're getting that error. Line 116 is just ending the table and script. The only thing you should really need to change is the information I'm posting below. Make sure sure http:// is not part of your ip number. It won't work. I had that problem when I was getting it to work.

'USER DEFINED VARIABLES (CHANGE THESE)
ServerDomain = "pcradionetwork.no-ip.com" 'DOMAIN
ServerPass = "password" 'PASSWORD
ServerPort = "Port Number"

That's the only thing I changed in the whole script. Everything else remained the same.

aDcOoL
14th December 2004, 11:59
yeah I didn't have the http:// in there

it seems that last night, my 1asphost ran out of bandwidth; and now when I use it (it has bandwidth again lol) I get that error...same thing happened a week ago when I first had it; the site ran out of bandwidth, then when it worked again, I got that error, so I re-did the script and named it something differen't and uploaded it again. Guess what? Ran out of bandwidth; next day the website was working; and a got the error.

Maybe there's a Free asp host that has unlimited bandwidth?


EDIT: hahahaha I just realized I didn't have the server running.

But still; is there a free asp host ou there that gives you unlimited bandwidth? Because it keeps running out of bandwidth lol

and is there a way to maybe instead of say that error when the server isn't on, say something like "Server isn't connected" or something instead of whatever it says now? lol thanks.

PC Radio Net
14th December 2004, 12:19
There aren't alot of good free asp hosts. I've never had problem with http://1asphost.com since I started with them in October. Do a google search and see what you can find.

From the way it sounds, your site gets alot of visitors. You may want to try another host for your site and make a Now Playing link back to 1asp to show that info.

aDcOoL
14th December 2004, 21:30
actually, I don't get very many visitors; I think it runs out of bandwidth quickly because the server stats refreshes every 30 seconds, so that adds to the bandwidth. (btw I added that to your script lol)

umm google searched, found lots, but none of them really worked for me...maybe I should switch to PHP? What do you think?

aDcOoL
15th December 2004, 11:18
anyone?

SnowPunk98
16th December 2004, 16:08
I am also getting the same 500 error and only changed those few things. ASP is enabled on my server but it doesn't tell me why it isnt working.

SnowPunk98
17th December 2004, 01:06
If you or your hosting is running Windows 2003 you will need to make a change for it to work properly. My friend who is a programmer helped me fix the code this morning. I will post the updated asp file when I go downstairs and get my USB drive in a few minutes.

SnowPunk98
17th December 2004, 17:20
Ok so if you are using Windows 2003 use this version. My friend andrew made the fix for me, so don't give me any credit. Also be sure that you are not using the & symbol in your admin password for Shoutcast, this will cause errors.

http://www.christianpunkradio.com/shout/serverstatus.zip

dodea
27th January 2005, 06:38
This is a great script - I have it running now on my site;

http://www.danielodea.com/fun.asp

But what do I do if the server's down? Can I do and if/else statement to make it say the same thing as server is down?

Can I get a different return for ServerStatus ?

Thanks again - this works great!

-DOD

2good
28th January 2005, 15:53
kl sounds good...
but myne like doesnt work! :P

http://www.no3scape.com/whiplash/serverstatus.html

daPhil
2nd March 2005, 08:25
I'm glad to see the script live on :)

kaosh
21st March 2005, 14:51
First of all; thanks for a great script! It has been hard to track down a asp-solution!

Second; i have a problem with the error-message. I run a radiosite with list of a lot of stations. Its therefor crusial that theres en error on each single connection-attempt that returns an error. Now, the site wont load if the server-info is wrong (or changed).

I get the following error:

Microsoft VBScript runtime error '800a01a8'

Object required: 'objXMLDOM.SelectSingleNode(...)'

/status_age.asp, line 49

Any ideas how fo fix it to return just a simple line of code stating "We cant connect just now" or something similar?

Sincerely
Daniel

Tzedek
11th April 2005, 18:36
I can make this asp script work for the life of me. I am getting an error with the line

Server.Createobject("Microsoft.XMLDOM")

daPhil
12th April 2005, 07:10
Originally posted by Tzedek
I can make this asp script work for the life of me. I am getting an error with the line

Server.Createobject("Microsoft.XMLDOM")

Are you running IIS v5 or later?
Is the Shoutcast server running?

Tzedek
14th April 2005, 02:13
Originally posted by daPhil
Are you running IIS v5 or later?
Is the Shoutcast server running?

i go through a free host, 1asphost.com so I am not sure about IIS v5 or later. And yes the shoutcast was up when I tested it out.


I think this is the line that is messing me up


'MAKE SERVERURL
ServerURL = "http://"& ServerDomain &":"& ServerPort &"/admin.cgi?pass="& ServerPass &"&mode=viewxml"



What would that normally look like? Is it going to be the shoutcast server IP (ie my IP) or the URL of the page I want the script to run on?

daPhil
14th April 2005, 07:17
Well if the server is not running IIS 5 or later and supports XMLDom, you wont get far. Find that out first.

Tzedek
14th April 2005, 15:34
Yes, it is IIS 5.0 but they do not support XML DOM "for security reasons" :( well thanks anyway

litemotiv
3rd June 2005, 12:30
i'm getting the following error too:


Microsoft VBScript runtime error '800a01a8'

Object required: 'objXMLDOM.SelectSingleNode(...)'

/serverstatus.asp, line 50


any ideas? :) i can lookup the xml directly without problems, so it's not the access itself (afaik).

(i tried it on 2 different iis5 servers)

edit: solved it, apparently the port was firewalled on both (commercial) servers ;)

EC PB Radio
21st June 2005, 20:30
well if i were to use this script...could someone tell me if my webserver Abyss Webserver is compatable with it or if someone could tell me of a free webserver i could run on my computer that supports it.

dotme
21st June 2005, 20:39
If you run XP Pro or Windows 2000 Pro, you already have a webserver... IIS. Regading compatibility of your existing webserver with ASP, or PHP, you might want to look at the manufacturer's site.

EC PB Radio
21st June 2005, 21:11
ok ive got the script to run i got php running and all...but im getting all kinds of variable errors

http://69.136.196.254/scast/scaststatus.php

ryu701
16th April 2006, 06:13
Microsoft VBScript runtime error '800a01a8'

Object required: 'objXMLDOM.SelectSingleNode(...)'

/serverstatus.asp, line 50

I get this error too. :(
I use hosting service of godaddy.com. They support IIS 6.0.
I can look xml file directly.
I tried to connect without "http://" but just the IP itself. I also tried to connect to "127.0.0.1". It didn't help.
I use a router but the port is not firewalled.

I have been trying to solve this for hours... Can you please help me? :confused:

dotme
16th April 2006, 13:40
The error usually indicates that the webserver can't successfully pull the XML file from your shoutcast server. Most common reasons are bad username, bad password, bad IP

Check all three - make sure in the ASP code that you have all the required info for your DNAS.

ryu701
17th April 2006, 00:55
I checked all of them they are correct.

I think my router doesn't let me connect to my external IP from the internal one.

my page: http://www.harmankoy.org/shoutcast/hede.asp

If you can see this page without error, the problem is my router. Do you know what can I do about it?

dotme
17th April 2006, 13:24
It's possible that GoDaddy doesn't support fetching content (server-to-server). Check with them before worrying about config on your end.