Author Topic: Trouble sending music data to website  (Read 8581 times)

undercityradio

  • Newbie
  • *
  • Posts: 2
Trouble sending music data to website
« 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 .
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):
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

The HTTP Query is set like this:

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

Thanks!

Jan

  • Hero Member
  • *****
  • Posts: 1137
Re: Trouble sending music data to website
« Reply #1 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.

undercityradio

  • Newbie
  • *
  • Posts: 2
Re: Trouble sending music data to website
« Reply #2 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!