Pira.cz Technical Forum

Radio Data System (RDS) => General Discussion about the RDS => Topic started by: undercityradio on November 01, 2013, 12:38:19 am

Title: Trouble sending music data to website
Post by: undercityradio on November 01, 2013, 12:38:19 am
Hello!
I'm trying to set my website to get the music data like the example pira provides: http://pira.cz/rds/test.asp (http://pira.cz/rds/test.asp) .
I followed the steps described in http://www.pira.cz/rds/show.asp?art=guide_text_7 (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):
Code: [Select]
<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.asp (http://www.undercityradio.com/test.asp)

The HTTP Query is set like this:

Variable: undercity
Source: Broadcast log
Address: http://www.undercityradio.com/test.asp

Thanks!
Title: Re: Trouble sending music data to website
Post by: Jan on November 01, 2013, 08:27:56 am
Maybe you don't have a permission on your server for writing files. Ask your web hosting provider for a folder where file writes are enabled. Or use database for the song name storage.
As this is a purely ASP related issue, you should visit some ASP forum rather.
Title: Re: Trouble sending music data to website
Post by: undercityradio on November 16, 2013, 12:53:53 am
Hi Jan! Thank you!

I am still having problemas to make this work; although I have tried with the test.asp of Pira.cz and it worked!

I have a web hosting economy in Goddady. Can you help me?

Thanks again!