Hello!
I'm trying to set my website to get the music data like the example pira provides:
http://pira.cz/rds/test.asp .
I followed the steps described in
http://www.pira.cz/rds/show.asp?art=guide_text_7 , but there's no way i can make it work. If i try to send the data to the example link everything works fine. So i suppose there's something wrong with my code.
Here it is (test.asp):
<html>
<body>
<%
dim s
s=Request.QueryString("undercity")
Response.Write(s)
set fs=Server.CreateObject("Scripting.FileSystemObject")
if s<>"" then
set f=fs.OpenTextFile(Server.MapPath("rds.txt"),2,true)
f.WriteLine(s)
f.Close
Set f=Nothing
else
if (fs.FileExists(Server.MapPath("rds.txt")))=true then
set f=fs.OpenTextFile(Server.MapPath("rds.txt"),1)
Response.Write("On air: "+f.ReadAll)
f.Close
Set f=Nothing
end if
end if
set fs=Nothing
%>
</body>
</html>
My URL is:
http://www.undercityradio.com/test.aspThe HTTP Query is set like this:
Variable: undercity
Source: Broadcast log
Address:
http://www.undercityradio.com/test.aspThanks!